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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.41ms] Passed 4 tests
This is a short check of server-side resources used by Simple widget display conditions Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.65 ▼4.89 |
Dashboard /wp-admin | 3.40 ▲0.10 | 44.11 ▼2.10 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 46.24 ▲0.95 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 80.65 ▼9.48 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.75 ▼5.17 |
Simple widget display conditions Lite /wp-admin/options-general.php?page=simple-widget-display-conditions-lite | 3.29 | 31.07 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Simple widget display conditions Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.27 ▼1.04 | 1.46 ▼0.25 | 39.91 ▲2.99 |
Dashboard /wp-admin | 2,208 ▲19 | 5.86 ▼0.07 | 103.38 ▼2.25 | 39.97 ▼0.07 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▲0.02 | 38.64 ▲1.55 | 36.34 ▲4.46 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 17.46 ▼5.69 | 691.39 ▲11.29 | 67.94 ▲13.58 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.24 ▼0.03 | 95.83 ▼20.43 | 40.45 ▼9.21 |
Simple widget display conditions Lite /wp-admin/options-general.php?page=simple-widget-display-conditions-lite | 883 | 2.02 | 27.86 | 37.71 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/simple-widget-display-conditions-lite/simple-widget-display-conditions-lite.php:14
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simple-widget-display-conditions-lite/simple-widget-display-conditions-lite.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-widget-display-conditions-lite/swdcl-admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-widget-display-conditions-lite/widget-form.php:77
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-widget-display-conditions-lite/conditions-filter.php:127
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/simple-widget-display-conditions-lite/simple-widget-display-conditions-lite.php on line 13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-widget-display-conditions-lite/simple-widget-display-conditions-lite.php on line 13
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: widget
simple-widget-display-conditions-lite/simple-widget-display-conditions-lite.php 92% from 13 tests
The principal PHP file in "Simple widget display conditions Lite" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected497 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 63 | 10 | 255 |
CSS | 2 | 3 | 0 | 242 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.78 |
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 | 9 | |
▷ Named functions | 9 | 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
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/swdc_img1.png | 3.60KB | 3.61KB | 0.00% |
images/swdcl_ja.png | 8.63KB | 8.57KB | ▼ 0.74% |
images/swdc_ja_img1.png | 3.74KB | 3.71KB | ▼ 0.83% |
images/swdcl.png | 8.26KB | 8.21KB | ▼ 0.63% |