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.32MB] [CPU: ▼0.66ms] Passed 4 tests
Server-side resources used by CP Related Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.31 | 47.33 ▲1.97 |
Dashboard /wp-admin | 3.62 ▲0.31 | 55.45 ▼0.31 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 52.45 ▲1.04 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 96.66 ▼5.33 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 41.55 ▲7.67 |
CP Related Posts /wp-admin/options-general.php?page=cprp-settings | 3.51 | 33.71 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_cprpwidget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CP Related Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲118 | 13.54 ▼0.71 | 8.60 ▲6.90 | 45.49 ▲6.53 |
Dashboard /wp-admin | 2,196 ▲22 | 5.62 ▼0.04 | 81.93 ▼7.57 | 37.73 ▼7.92 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.21 ▲0.22 | 32.70 ▼6.80 | 37.53 ▲2.83 |
Add New Post /wp-admin/post-new.php | 6,328 ▲4,800 | 20.77 ▼2.47 | 907.65 ▲245.69 | 79.61 ▲28.86 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.17 ▼0.17 | 98.87 ▼10.31 | 45.33 ▼4.94 |
CP Related Posts /wp-admin/options-general.php?page=cprp-settings | 1,571 | 2.19 | 30.34 | 40.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_cprpwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 2× 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/cp-related-posts/includes/banner.inc.php:106
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cp-related-posts/includes/banner.inc.php:106
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #7 is missing in cp-related-posts/assets to your readme.txt
- Tags: There are too many tags (28 tag instead of maximum 10)
cp-related-posts/cp-related-posts.php 92% from 13 tests
The primary PHP file in "CP Related Posts" version 1.0.46 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 182 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,073 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 256 | 288 | 1,742 |
PO File | 1 | 55 | 55 | 150 |
JavaScript | 3 | 17 | 3 | 115 |
CSS | 2 | 8 | 3 | 66 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 21 | |
▷ Static methods | 11 | 52.38% |
▷ Public methods | 7 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 66.67% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/star_off.png | 0.46KB | 0.33KB | ▼ 28.21% |
images/frame_on.png | 0.19KB | 0.08KB | ▼ 58.08% |
images/ball_off.png | 0.70KB | 0.65KB | ▼ 6.42% |
images/star_on.png | 0.42KB | 0.29KB | ▼ 28.94% |
images/ball_on.png | 0.66KB | 0.65KB | ▼ 0.89% |