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.30MB] [CPU: ▼7.76ms] Passed 4 tests
An overview of server-side resources used by Custom Post Type Widgets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 36.59 ▼2.45 |
Dashboard /wp-admin | 3.60 ▲0.26 | 45.93 ▼12.90 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 46.56 ▲1.94 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 80.47 ▼17.55 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 37.43 ▲1.86 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_custom-post-type-recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
widget_custom-post-type-calendar |
widget_custom-post-type-recent-comments |
widget_recent-posts |
widget_custom-post-type-search |
theysaidso_admin_options |
widget_custom-post-type-categories |
widget_custom-post-type-tag-cloud |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Post Type Widgets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.19 ▼1.39 | 4.65 ▲3.00 | 36.87 ▼6.98 |
Dashboard /wp-admin | 2,209 ▲18 | 5.91 ▲1.03 | 104.25 ▼5.38 | 38.96 ▼5.01 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▲0.02 | 39.47 ▲1.61 | 35.17 ▲2.06 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.35 ▲4.92 | 669.00 ▲44.90 | 51.93 ▼5.53 |
Media Library /wp-admin/upload.php | 1,379 ▼9 | 4.19 ▼0.04 | 102.82 ▲5.18 | 44.97 ▲1.42 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 13 options
- widget_custom-post-type-calendar
- widget_custom-post-type-recent-posts
- can_compress_scripts
- widget_recent-posts
- widget_custom-post-type-tag-cloud
- widget_recent-comments
- theysaidso_admin_options
- widget_custom-post-type-archives
- widget_custom-post-type-recent-comments
- widget_custom-post-type-search
- ...
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 no errors were found, 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
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-post-type-widgets/inc/widget-custom-post-type-calendar.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-post-type-widgets/inc/widget-custom-post-type-recent-comments.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-post-type-widgets/inc/widget-custom-post-type-tag-cloud.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-post-type-widgets/inc/widget-custom-post-type-archive.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-post-type-widgets/inc/widget-custom-post-type-categories.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-post-type-widgets/inc/widget-custom-post-type-recent-posts.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-post-type-widgets/inc/widget-custom-post-type-search.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Recent Posts (Custom Post Type)), #2 (Archives (Custom Post Type)), #3 (Categories (Custom Post Type)), #4 (Calendar (Custom Post Type)), #5 (Recent Comments (Custom Post Type)), #6 (Tag Cloud (Custom Post Type)), #7 (Search (Custom Post Type))
custom-post-type-widgets/custom-post-type-widgets.php Passed 13 tests
This is the main PHP file of "Custom Post Type Widgets" version 1.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
This plugin adds default custom post type widgets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,678 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 261 | 922 | 1,377 |
PO File | 3 | 131 | 81 | 301 |
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.39 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 6.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 46 | |
▷ Static methods | 1 | 2.17% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
7 PNG files occupy 0.30MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 39.05KB | 10.63KB | ▼ 72.79% |
screenshot-1.png | 46.87KB | 12.89KB | ▼ 72.50% |
screenshot-4.png | 29.40KB | 7.24KB | ▼ 75.38% |
screenshot-7.png | 29.35KB | 7.13KB | ▼ 75.71% |
screenshot-3.png | 64.42KB | 19.93KB | ▼ 69.06% |