Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.16ms] Passed 4 tests
Analyzing server-side resources used by WordPress Widgets Refresh
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.33 ▲1.97 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.13 ▼2.78 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.07 ▲0.31 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.13 ▼12.13 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 35.39 ▲2.08 |
Widgets (Refreshed) /wp-admin/themes.php?page=wordpress-widgets-refresh | 3.22 | 31.53 |
Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Widgets Refresh
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.27 ▼1.13 | 4.62 ▲2.64 | 43.76 ▼0.54 |
Dashboard /wp-admin | 2,210 ▲28 | 4.82 ▼0.02 | 103.33 ▼8.75 | 40.40 ▼1.18 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.14 ▲0.08 | 33.68 ▼3.78 | 36.14 ▲2.82 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.12 ▲5.59 | 679.08 ▲65.92 | 55.61 ▲4.35 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.26 ▲0.02 | 96.79 ▼1.48 | 42.99 ▼1.95 |
Widgets (Refreshed) /wp-admin/themes.php?page=wordpress-widgets-refresh | 745 | 2.05 | 23.69 | 22.42 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/widgets-widgets-widgets/views/admin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== WordPress Widgets Refresh===
)
widgets-widgets-widgets/wordpress-widgets-refresh.php 77% from 13 tests
The principal PHP file in "WordPress Widgets Refresh" v. 0.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("widgets-widgets-widgets.php" instead of "wordpress-widgets-refresh.php")
- Domain Path: The domain path folder does not exist ("/lang")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin72 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 38 | 150 | 72 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 11 | |
▷ Static methods | 3 | 27.27% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin