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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.93ms] Passed 4 tests
This is a short check of server-side resources used by Easy Primary Category
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.13 ▲3.95 |
Dashboard /wp-admin | 3.36 ▲0.05 | 40.10 ▼9.66 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 45.35 ▼0.57 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.34 ▼12.25 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.65 ▼1.25 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Primary Category
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.30 | 1.60 ▼0.02 | 37.64 ▼1.82 |
Dashboard /wp-admin | 2,195 ▲23 | 5.62 ▲0.02 | 94.58 ▼5.28 | 42.51 ▼1.44 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▼0.00 | 39.06 ▲5.08 | 37.37 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.57 ▼0.03 | 688.94 ▼0.08 | 51.80 ▼7.27 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.30 ▲0.07 | 97.52 ▲0.23 | 41.79 ▼2.67 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Donate link: Invalid URI found ("PayPal.me/gagan0123")
easy-primary-category/easy-primary-category.php Passed 13 tests
"Easy Primary Category" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
Allows you to choose primary category for posts and custom post types
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin487 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 123 | 470 | 334 |
JavaScript | 2 | 41 | 76 | 113 |
Sass | 1 | 7 | 0 | 39 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.20 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 3 | 10.00% |
▷ Public methods | 19 | 63.33% |
▷ Protected methods | 7 | 23.33% |
▷ Private methods | 4 | 13.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There are no PNG files in this plugin