Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/random-christmas-fact-widget/randomtext.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; cw_randomtext has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼52.88ms] Passed 4 tests
Server-side resources used by Random Christmas Fact Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.64 ▼37.64 |
Dashboard /wp-admin | 2.09 ▼1.22 | 6.57 ▼47.34 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.61 ▼41.76 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 7.73 ▼84.79 |
Media Library /wp-admin/upload.php | 2.09 ▼1.15 | 6.79 ▼28.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_cw_randomtext |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Random Christmas Fact Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.28 ▼0.30 | 1.65 ▲0.01 | 43.10 ▼1.36 |
Dashboard /wp-admin | 2,189 ▲21 | 5.48 ▼0.06 | 82.29 ▼21.07 | 40.29 ▼5.18 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.06 | 42.58 ▲8.69 | 36.57 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.44 ▲0.50 | 666.24 ▲6.19 | 50.83 ▼19.47 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.19 ▼0.00 | 94.65 ▼16.00 | 41.64 ▼7.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/random-christmas-fact-widget/randomtext.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; cw_randomtext has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- widget_cw_randomtext
- db_upgraded
- can_compress_scripts
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)
The smoke test was a success, however most plugin functionality was not tested
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 trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/random-christmas-fact-widget/randomtext.php:33
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: christmas, santa claus, holiday, widget-only, widget...
random-christmas-fact-widget/randomtext.php 92% from 13 tests
The main PHP file in "Random Christmas Fact Widget" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("random-christmas-fact-widget.php" instead of "randomtext.php")
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
There were no executable files found in this plugin83 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 1 | 0 | 44 |
PHP | 1 | 21 | 21 | 39 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ 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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin