Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.32ms] Passed 4 tests
Server-side resources used by Category For Pages
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.38 ▼4.76 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.07 ▼14.22 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.65 ▼5.64 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 96.04 ▼8.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.56 ▼3.28 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page | 3.23 | 34.55 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page | 3.23 | 40.04 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
category_children |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Category For Pages
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲52 | 13.65 ▼0.93 | 5.24 ▲3.22 | 40.57 ▼1.92 |
Dashboard /wp-admin | 2,229 ▲26 | 4.86 ▼1.00 | 109.16 ▲4.12 | 39.39 ▼2.20 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.05 ▲0.06 | 40.28 ▼1.58 | 35.87 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,560 ▲6 | 23.27 ▲5.01 | 646.40 ▲29.69 | 52.17 ▲1.19 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.23 ▲0.01 | 100.75 ▲1.15 | 45.52 ▲3.00 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page | 1,330 | 2.14 | 27.84 | 30.55 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page | 1,463 | 2.14 | 29.77 | 33.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- category_children
- widget_recent-comments
- widget_recent-posts
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-for-pages/category-for-pages.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add an image for screenshot #1 (A screenshot of the WordPress backend Pages section with the Categories metabox and the Tags metabox marked red.)
category-for-pages/category-for-pages.php Passed 13 tests
The principal PHP file in "Category For Pages" v. 1.0 is loaded by WordPress automatically on each request
54 characters long description:
Adds categories and tags functionality for your pages.
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
Good job! No executable or dangerous file extensions detected16 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 41 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 59.98KB | 27.40KB | ▼ 54.33% |