Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/moon-phase-widget/moon-phase-widget.php+113
Function create_function() is deprecated
Server metrics [RAM: ▼2.22MB] [CPU: ▼60.70ms] Passed 4 tests
A check of server-side resources used by Moon Phase Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.67 | 4.60 ▼38.97 |
Dashboard /wp-admin | 2.08 ▼1.55 | 5.44 ▼62.08 |
Posts /wp-admin/edit.php | 2.08 ▼1.60 | 5.81 ▼47.51 |
Add New Post /wp-admin/post-new.php | 2.08 ▼4.06 | 5.68 ▼94.23 |
Media Library /wp-admin/upload.php | 2.08 ▼1.41 | 6.11 ▼33.03 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_moonphase_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Moon Phase Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.73 ▲0.35 | 1.74 ▼0.25 | 45.98 ▲1.58 |
Dashboard /wp-admin | 2,195 ▲24 | 5.70 ▲0.01 | 83.15 ▼8.51 | 39.19 ▲1.06 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.06 ▲0.08 | 38.40 ▼1.00 | 36.84 ▲2.79 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 17.52 ▼5.51 | 706.59 ▲20.08 | 53.99 ▼12.19 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▼0.07 | 108.99 ▼1.44 | 47.53 ▼1.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/moon-phase-widget/moon-phase-widget.php+113
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_moonphase_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× 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/moon-phase-widget/moon-phase-widget.php:32
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (This shows the widget setup in the dashboard.), #2 (This shows the widget in action. You can style this from within the dashboard.)
moon-phase-widget/moon-phase-widget.php Passed 13 tests
The main PHP file in "Moon Phase Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
37 characters long description:
Sidebar widget to show the moon phase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin54 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 21 | 54 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 4.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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin