Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/recommended-links/widgets.php+186
Methods with the same name as their class will not be constructors in a future version of PHP; RecLinks_Bookmarklet has a deprecated constructor
Server metrics [RAM: ▼1.69MB] [CPU: ▼48.15ms] Passed 4 tests
A check of server-side resources used by Recommended Links for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.14 | 9.54 ▼27.48 |
Dashboard /wp-admin | 2.33 ▼1.02 | 9.46 ▼56.58 |
Posts /wp-admin/edit.php | 2.33 ▼1.03 | 10.42 ▼33.34 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.56 | 11.26 ▼75.21 |
Media Library /wp-admin/upload.php | 2.33 ▼0.90 | 10.69 ▼25.13 |
RecLinks /wp-admin/edit.php?post_type=reclink | 2.33 | 10.80 |
Plugin Settings /wp-admin/edit.php?post_type=reclink&page=reclinks_plugin_settings | 2.33 | 12.41 |
Add New /wp-admin/post-new.php?post_type=reclink | 2.33 | 9.99 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_reclinks_votes |
New WordPress options |
---|
widget_recent-posts |
reclinks_db_version |
widget_theysaidso_widget |
reclinks_plugin_options |
widget_reclinks_bookmarklet |
widget_reclinks_addlink |
theysaidso_admin_options |
widget_reclinks_current |
widget_recent-comments |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Recommended Links for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲210 | 14.03 ▼0.41 | 6.09 ▲4.33 | 44.57 ▼3.83 |
Dashboard /wp-admin | 2,240 ▲52 | 4.86 ▼0.17 | 108.78 ▲7.75 | 41.46 ▲2.13 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 1.98 ▼0.08 | 39.26 ▼0.86 | 34.55 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,558 ▲14 | 23.37 ▲5.11 | 602.45 ▼0.52 | 68.68 ▲4.55 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.16 ▼0.10 | 98.30 ▼2.16 | 43.98 ▲0.12 |
RecLinks /wp-admin/edit.php?post_type=reclink | 1,163 | 1.95 | 33.42 | 32.46 |
Plugin Settings /wp-admin/edit.php?post_type=reclink&page=reclinks_plugin_settings | 1,014 | 2.06 | 22.87 | 31.92 |
Add New /wp-admin/post-new.php?post_type=reclink | 2,639 | 7.87 | 175.01 | 64.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in RecLinks_Add_Form is deprecated since version 4.3.0! Use __construct() instead.
- Zombie tables were found after uninstall: 1 table
- wp_reclinks_votes
- Zombie WordPress options detected upon uninstall: 11 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_reclinks_current
- can_compress_scripts
- reclinks_db_version
- widget_reclinks_bookmarklet
- reclinks_plugin_options
- theysaidso_admin_options
- widget_reclinks_addlink
- db_upgraded
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=reclink
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in RecLinks_Add_Form is deprecated since version 4.3.0! Use __construct() instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=reclink
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in RecLinks_Display_Links is deprecated since version 4.3.0! Use __construct() instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=reclink
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in RecLinks_Bookmarklet is deprecated since version 4.3.0! Use __construct() instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/recommended-links/admin/options-archives.php
- > /wp-content/plugins/recommended-links/admin/options-about.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/recommended-links/recommended-links.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/recommended-links/admin/options-general.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/recommended-links/display-shortcodes.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/recommended-links/loop-reclinks.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/recommended-links/admin/options-bookmarklet.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/recommended-links/ajax-functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recommended-links/user-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recommended-links/admin-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/recommended-links/display-filters.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recommended-links/widgets.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: voting, social bookmarking, digg, reddit, sharing
recommended-links/recommended-links.php Passed 13 tests
This is the main PHP file of "Recommended Links for WordPress" version 0.4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
A "reddit clone" that runs in Wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,522 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 311 | 309 | 1,306 |
CSS | 1 | 11 | 2 | 93 |
JavaScript | 1 | 0 | 0 | 72 |
CoffeeScript | 1 | 0 | 0 | 51 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 54 | |
▷ Named functions | 54 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon16.png | 0.78KB | 0.70KB | ▼ 10.99% |
images/minus-plus.png | 1.24KB | 1.05KB | ▼ 15.59% |
images/recommend.png | 2.62KB | 1.68KB | ▼ 36.10% |
images/minus-plus-small.png | 0.65KB | 0.82KB | 0.00% |