Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/categorized-new-post/categorized-new-post.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; MyCategorizedNewPostWidget has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼56.70ms] Passed 4 tests
A check of server-side resources used by Categorized New Post
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.32 ▼41.67 |
Dashboard /wp-admin | 2.09 ▼1.21 | 7.56 ▼46.80 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 7.16 ▼43.90 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 5.16 ▼94.44 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 7.22 ▼24.28 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_mycategorizednewpostwidget |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Categorized New Post: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.01 | 1.84 ▼0.52 | 38.39 ▼3.87 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▲0.03 | 100.89 ▲9.96 | 46.78 ▲6.59 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.94 ▼0.05 | 36.97 ▼2.23 | 36.49 ▼0.63 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.74 ▲0.79 | 684.23 ▼14.37 | 50.49 ▼1.72 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.21 ▼0.09 | 94.25 ▼15.33 | 40.75 ▼5.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/categorized-new-post/categorized-new-post.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; MyCategorizedNewPostWidget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_mycategorizednewpostwidget
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
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 items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/categorized-new-post/categorized-new-post.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI ("")
- Screenshots: Screenshot #1 (Displayed widget.) image missing
categorized-new-post/categorized-new-post.php Passed 13 tests
The entry point to "Categorized New Post" version 1.0.3 is a PHP file that has certain tags in its header comment area
32 characters long description:
Widget for categorized new post.
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
No dangerous file extensions were detected72 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 13 | 72 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
1 PNG file occupies 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 113.32KB | 35.64KB | ▼ 68.55% |