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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.24ms] Passed 4 tests
Server-side resources used by Require Post Category
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 49.04 ▲5.48 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.25 ▼7.76 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 42.82 ▼7.18 |
Add New Post /wp-admin/post-new.php | 5.87 ▼0.02 | 84.23 ▼10.22 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.94 ▲4.22 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Require Post Category
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.11 | 2.04 ▲0.02 | 43.65 ▼1.38 |
Dashboard /wp-admin | 2,209 ▲18 | 5.91 ▲0.96 | 100.85 ▼6.86 | 41.81 ▼2.49 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.05 | 37.38 ▼0.65 | 31.08 ▼4.31 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 23.00 ▲5.50 | 639.34 ▼39.48 | 59.99 ▲6.50 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.40 ▲0.19 | 99.32 ▼8.63 | 43.64 ▼2.31 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/require-post-category/require-post-category.php:29
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: These screenshots require images: #1 (Notice appears when editing a post without selecting a category (Gutenberg)), #2 (Alert appears when you try to save a post without selecting a category (Classic))
require-post-category/require-post-category.php Passed 13 tests
The main PHP script in "Require Post Category" version 2.1 is automatically included on every request by WordPress
77 characters long description:
Require users to choose a post category before updating or publishing a post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin240 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 23 | 95 |
JavaScript | 2 | 7 | 0 | 84 |
PO File | 4 | 4 | 12 | 61 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.71 |
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 | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.06MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 30.85KB | 30.35KB | ▼ 1.63% |
screenshot-2.png | 29.40KB | 28.41KB | ▼ 3.36% |