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
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.64ms] Passed 4 tests
This is a short check of server-side resources used by Episode VII Countdown Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.93 ▼1.41 |
Dashboard /wp-admin | 3.37 ▲0.07 | 56.91 ▲3.81 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 47.52 ▼2.41 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 88.78 ▲2.56 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 37.16 ▲3.87 |
Server storage [IO: ▲0.74MB] [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: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_wb_countdown_widget |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Episode VII Countdown Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲86 | 13.82 ▼0.53 | 8.33 ▲6.23 | 44.29 ▼4.97 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.04 | 88.97 ▼7.53 | 44.33 ▲2.74 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.07 | 35.71 ▼1.93 | 32.14 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,527 ▲1 | 21.01 ▼2.23 | 668.99 ▼59.06 | 62.81 ▲11.51 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.23 ▼0.06 | 113.14 ▲19.38 | 47.57 ▲3.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_wb_countdown_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/episode-vii-countdown-widget/layout.php on line 15
- > PHP Notice
Undefined variable: args in wp-content/plugins/episode-vii-countdown-widget/layout.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/episode-vii-countdown-widget/episode7-countdown-widget.php:30
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/episode-vii-countdown-widget/layout.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/episode-vii-countdown-widget/layout.php on line 15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/episode-vii-countdown-widget/layout.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/episode-vii-countdown-widget/layout.php:16
- > PHP Notice
Undefined variable: instance in wp-content/plugins/episode-vii-countdown-widget/layout.php on line 15
- > PHP Notice
Undefined variable: instance in wp-content/plugins/episode-vii-countdown-widget/layout.php on line 15
- > PHP Notice
Undefined variable: instance in wp-content/plugins/episode-vii-countdown-widget/layout.php on line 15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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: countdown, episodevii, star wars, episode vii, timer...
episode-vii-countdown-widget/episode7-countdown-widget.php 85% from 13 tests
The main PHP file in "Episode VII Countdown Widget" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("episode-vii-countdown-widget.php" instead of "episode7-countdown-widget.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin897 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 82 | 21 | 326 |
PHP | 2 | 48 | 78 | 321 |
JavaScript | 2 | 38 | 202 | 250 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 66.00 |
▷ Minimum class complexity | 66.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 17.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.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 | 3 | |
▷ Named functions | 3 | 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
There were not PNG files found in your plugin