Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.44ms] Passed 4 tests
This is a short check of server-side resources used by Tubaret Network Share plugin for Wordpress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.02 ▲1.84 |
Dashboard /wp-admin | 3.32 ▼0.02 | 40.51 ▼20.87 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.89 ▲1.20 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.90 ▼11.92 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 36.21 ▲2.79 |
Tubaret Network /wp-admin/options-general.php?page=tubaret-network-share-button | 3.22 | 26.62 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 10 new options
New WordPress options |
---|
tbr_wp_size |
tbr_wp_position_vert |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
tbr_wp_position_horiz |
theysaidso_admin_options |
tbr_wp_site |
Browser metrics Passed 4 tests
Tubaret Network Share plugin for Wordpress: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 13.30 ▼1.28 | 1.50 ▼0.13 | 37.32 ▼6.28 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.97 | 110.75 ▼5.80 | 42.17 ▼4.09 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.05 | 38.85 ▲1.74 | 36.12 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.36 ▼0.08 | 674.91 ▼20.93 | 56.98 ▼4.52 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.21 ▼0.02 | 99.04 ▼4.93 | 40.00 ▼9.07 |
Tubaret Network /wp-admin/options-general.php?page=tubaret-network-share-button | 879 | 2.03 | 26.12 | 31.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function selected() in wp-content/plugins/tubaret-network-share-button/tpl/admin_page.tpl.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tubaret-network-share-button/tpl/button_iframe.tpl.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tubaret-network-share-button/tubaret_share_button.php:33
- > PHP Notice
Undefined variable: template in wp-content/plugins/tubaret-network-share-button/tpl/admin_page.tpl.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tubaret-network-share-button/tpl/admin_page.tpl.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: posts, social, plugin
tubaret-network-share-button/tubaret_share_button.php 92% from 13 tests
"Tubaret Network Share plugin for Wordpress" version 1.03's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("tubaret-network-share-button.php" instead of "tubaret_share_button.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin151 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 30 | 40 | 121 |
CSS | 1 | 7 | 0 | 30 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin