Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.49ms] Passed 4 tests
Analyzing server-side resources used by Select Primary Category
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.85 ▲0.52 |
Dashboard /wp-admin | 3.35 ▲0.04 | 51.89 ▼0.93 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 51.01 ▲0.85 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 88.05 ▼8.82 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.85 ▼0.72 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Select 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.35 ▲0.07 | 1.82 ▼0.13 | 43.07 ▼3.55 |
Dashboard /wp-admin | 2,198 ▲24 | 5.64 ▼0.03 | 97.30 ▼1.04 | 42.23 ▼3.38 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.06 | 33.13 ▼4.05 | 35.36 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.42 ▲0.28 | 681.72 ▼10.00 | 55.34 ▲4.94 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.24 ▲0.13 | 96.73 ▼18.66 | 44.39 ▼4.98 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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)
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'SPC_Infrastructure_Container' not found in wp-content/plugins/deniz-primary-category/src/infrastructure/spc-di.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: primary, taxonomy, category
deniz-primary-category/deniz-primary-category.php Passed 13 tests
The principal PHP file in "Select Primary Category" v. 1.0 is loaded by WordPress automatically on each request
80 characters long description:
Adds the ability to designate a primary category for posts and custom post types
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin543 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 123 | 269 | 353 |
JavaScript | 2 | 41 | 76 | 113 |
Sass | 1 | 8 | 0 | 43 |
CSS | 1 | 8 | 0 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.12 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 1 | 3.23% |
▷ Public methods | 23 | 74.19% |
▷ Protected methods | 2 | 6.45% |
▷ Private methods | 6 | 19.35% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin