Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.87ms] Passed 4 tests
Server-side resources used by Wordpress Custom Posts Widgets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 40.20 ▼8.25 |
Dashboard /wp-admin | 3.44 ▲0.13 | 49.74 ▼0.96 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.27 ▼1.79 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 91.38 ▼12.49 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.68 ▼0.73 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_sticky-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Wordpress Custom Posts Widgets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.35 ▲0.06 | 2.01 ▼0.13 | 41.96 ▼2.35 |
Dashboard /wp-admin | 2,196 ▲19 | 5.49 ▼0.16 | 86.57 ▼13.12 | 38.98 ▼5.61 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.01 ▲0.02 | 41.67 ▲2.95 | 35.47 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,530 ▼7 | 23.11 ▲4.86 | 652.60 ▼11.87 | 58.21 ▼12.27 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.22 ▲0.01 | 96.64 ▼8.53 | 41.73 ▼2.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_sticky-posts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please take a closer look at the following
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/wp-custom-posts-widgets/templates/legacy.php:15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-custom-posts-widgets/templates/standard.php on line 9
- > PHP Notice
Undefined variable: instance in wp-content/plugins/wp-custom-posts-widgets/templates/standard.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-custom-posts-widgets/wordpress-custom-widgets.php:28
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-custom-posts-widgets/templates/legacy.php on line 9
- > PHP Notice
Undefined variable: dtlwcpw_query in wp-content/plugins/wp-custom-posts-widgets/templates/standard.php on line 17
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/wp-custom-posts-widgets/templates/standard.php:17
- > PHP Notice
Undefined variable: instance in wp-content/plugins/wp-custom-posts-widgets/templates/legacy.php on line 9
- > PHP Notice
Undefined variable: dtlwcpw_query in wp-content/plugins/wp-custom-posts-widgets/templates/legacy.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: wordpress post widget, custom post widget, post widget with image, post widget with thumbnail
wp-custom-posts-widgets/wordpress-custom-widgets.php 85% from 13 tests
The entry point to "Wordpress Custom Posts Widgets" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-custom-posts-widgets.php" instead of "wordpress-custom-widgets.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected999 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 184 | 56 | 798 |
Sass | 2 | 15 | 0 | 114 |
JSON | 2 | 0 | 0 | 59 |
JavaScript | 3 | 8 | 29 | 26 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 98.00 |
▷ Minimum class complexity | 98.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 14.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin