Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▲2.57ms] Passed 4 tests
A check of server-side resources used by Enhanced Category Pages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 40.83 ▼0.65 |
Dashboard /wp-admin | 3.46 ▲0.15 | 58.86 ▲10.24 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.16 ▲5.74 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 93.82 ▲4.44 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.34 ▲0.76 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ecp_x_category |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Enhanced Category Pages: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.62 ▼1.05 | 1.64 ▼0.14 | 41.73 ▼7.61 |
Dashboard /wp-admin | 2,205 ▲17 | 5.84 ▲0.93 | 107.33 ▼6.71 | 40.61 ▼0.68 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.04 ▲0.03 | 40.64 ▲0.56 | 34.56 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,530 ▼12 | 23.48 ▲5.36 | 655.65 ▲55.23 | 49.58 ▼3.20 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.21 ▲0.00 | 105.08 ▲8.48 | 45.80 ▲3.00 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function setup_ec_data() on null in wp-content/plugins/enhanced-category-pages/views/ecp_category_description.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
9 plugin tags: featured image, category, page, categories, enhanced...
enhanced-category-pages/enhanced-category-pages.php Passed 13 tests
Analyzing the main PHP file in "Enhanced Category Pages" version 2.3.0
83 characters long description:
Create custom enhanced pages for categories. Manage category page as a custom post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin623 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 186 | 75 | 541 |
PO File | 1 | 18 | 19 | 70 |
CSS | 1 | 3 | 0 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 3 | 6.52% |
▷ Public methods | 35 | 76.09% |
▷ Protected methods | 3 | 6.52% |
▷ Private methods | 8 | 17.39% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin