Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼3.79ms] Passed 4 tests
An overview of server-side resources used by Same Category Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 38.52 ▼4.37 |
Dashboard /wp-admin | 3.50 ▲0.19 | 47.38 ▼6.69 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.57 ▲0.29 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 88.43 ▼4.37 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.44 ▲1.08 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_same-category-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Same Category Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.61 ▼0.79 | 1.77 ▼0.25 | 42.99 ▼2.23 |
Dashboard /wp-admin | 2,208 ▲17 | 5.85 ▼0.03 | 99.32 ▼4.08 | 36.98 ▼5.89 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.04 ▲0.01 | 36.33 ▲0.40 | 32.50 ▼4.92 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.24 ▲5.52 | 684.64 ▼0.12 | 64.50 ▲0.96 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.17 ▼0.11 | 102.82 ▼4.62 | 44.51 ▼1.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_same-category-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
5 plugin tags: products, custom post type, events, related, related posts
same-category-posts/same-category-posts.php Passed 13 tests
Analyzing the main PHP file in "Same Category Posts" version 1.1.18
70 characters long description:
Adds a widget that shows the most recent posts from a single category.
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
There were no executable files found in this plugin1,015 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 122 | 139 | 874 |
JavaScript | 1 | 13 | 22 | 82 |
CSS | 1 | 17 | 4 | 59 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 177.00 |
▷ Minimum class complexity | 177.00 |
▷ Maximum class complexity | 177.00 |
Average method complexity | 17.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 99.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected