Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼11.30ms] Passed 4 tests
This is a short check of server-side resources used by related categories post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.14 ▼6.71 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.31 ▼2.74 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.75 ▼10.42 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.36 ▼25.31 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.60 ▲6.22 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_related_category_widget |
Browser metrics Passed 4 tests
Checking browser requirements for related categories post
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.24 ▼0.02 | 1.74 ▼0.20 | 45.01 ▼2.85 |
Dashboard /wp-admin | 2,197 ▲17 | 5.51 ▼0.15 | 86.22 ▼1.87 | 40.95 ▼4.33 |
Posts /wp-admin/edit.php | 2,102 ▲5 | 2.03 ▼0.00 | 34.66 ▼5.14 | 35.15 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.14 ▲0.10 | 681.06 ▲55.12 | 59.02 ▼2.93 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.22 ▲0.07 | 108.50 ▲5.89 | 47.67 ▲4.42 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_related_category_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/related-categories-post/related-categories-post.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in related-categories-post/assets to your readme.txt
related-categories-post/related-categories-post.php 92% from 13 tests
The main PHP script in "related categories post" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin108 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 16 | 88 |
CSS | 1 | 0 | 1 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin