Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.78MB] [CPU: ▼51.61ms] Passed 4 tests
A check of server-side resources used by Custom Post Links
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.25 | 8.72 ▼35.56 |
Dashboard /wp-admin | 2.23 ▼1.07 | 9.60 ▼39.25 |
Posts /wp-admin/edit.php | 2.23 ▼1.12 | 10.50 ▼43.16 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.65 | 11.25 ▼88.48 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 9.41 ▼31.20 |
Add New /wp-admin/link-add.php | 2.23 | 10.95 |
All Links /wp-admin/link-manager.php | 2.25 | 10.25 |
Custom Post Links /wp-admin/options-general.php?page=cpl_settings | 2.23 | 11.07 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 2.23 | 10.96 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/custom-post-links/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
_cp_links-db_version |
theysaidso_admin_options |
widget_recent-posts |
widget_links |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Post Links
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲94 | 13.24 ▼1.17 | 1.91 ▼0.01 | 37.52 ▼10.22 |
Dashboard /wp-admin | 2,253 ▲47 | 5.80 ▲0.92 | 98.12 ▼9.11 | 40.74 ▼3.23 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 1.97 ▼0.02 | 41.14 ▼2.12 | 36.28 ▼1.33 |
Add New Post /wp-admin/post-new.php | 6,499 ▲4,973 | 19.02 ▲1.34 | 913.06 ▲216.29 | 70.41 ▲13.35 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.22 ▼0.03 | 100.38 ▼1.20 | 44.08 ▲0.90 |
Add New /wp-admin/link-add.php | 1,666 | 2.26 | 49.10 | 35.67 |
All Links /wp-admin/link-manager.php | 1,072 | 2.07 | 24.20 | 30.56 |
Custom Post Links /wp-admin/options-general.php?page=cpl_settings | 897 | 1.90 | 34.98 | 36.48 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 1,409 | 2.15 | 28.79 | 31.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/custom-post-links/cp_links-functions.php+120
count(): Parameter must be an array or an object that implements Countable
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- _cp_links-db_version
- widget_recent-posts
- widget_recent-comments
- widget_links
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
- > Warning in wp-content/plugins/custom-post-links/cp_links-functions.php+120
count(): Parameter must be an array or an object that implements Countable
SRP 50% 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
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-links/cp_links-settings.php:6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-post-links/cp_links-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-post-links/cp_links-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/custom-post-links/custom-post-links.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-links/cp_links-ajax.php:19
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/custom-post-links/cp_links-table.php on line 4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=cpl_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/custom-post-links/_inc/js/cp_links_admin.js?ver=2.0.8:6:46)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=cpl_settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 96% from 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: related links, custom links, post links, quick links, links
custom-post-links/custom-post-links.php 92% from 13 tests
The primary PHP file in "Custom Post Links" version 2.0.8 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,163 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 346 | 165 | 849 |
Sass | 2 | 37 | 2 | 128 |
CSS | 2 | 1 | 2 | 105 |
JavaScript | 1 | 20 | 10 | 73 |
Ruby | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 27.33 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 43 | |
▷ Static methods | 1 | 2.33% |
▷ Public methods | 41 | 95.35% |
▷ Protected methods | 1 | 2.33% |
▷ Private methods | 1 | 2.33% |
Functions | 18 | |
▷ Named functions | 18 | 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
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 37.75KB | 17.73KB | ▼ 53.04% |
screenshot-1.png | 27.27KB | 13.29KB | ▼ 51.24% |
screenshot-3.png | 34.80KB | 11.64KB | ▼ 66.55% |