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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.87ms] Passed 4 tests
Analyzing server-side resources used by Coronavirus (COVID-19) Live Stats & Updates - Beautiful Graphics, Charts, Wordlwide / Country Stats (USA, Spain, China, Pakistan ...)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 38.68 ▼4.47 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.38 ▼4.09 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.06 ▼1.78 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.08 ▼9.15 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.53 ▲1.59 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Coronavirus (COVID-19) Live Stats & Updates - Beautiful Graphics, Charts, Wordlwide / Country Stats (USA, Spain, China, Pakistan ...): an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲138 | 13.62 ▼0.77 | 1.83 ▲0.09 | 43.67 ▲5.05 |
Dashboard /wp-admin | 2,251 ▲59 | 5.86 ▲0.91 | 101.63 ▼0.70 | 43.99 ▼2.15 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.16 ▲0.15 | 39.22 ▲3.12 | 41.56 ▲6.60 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 17.70 ▼5.50 | 665.44 ▼15.64 | 57.59 ▲1.30 |
Media Library /wp-admin/upload.php | 1,439 ▲48 | 4.27 ▲0.06 | 95.96 ▼9.44 | 47.57 ▲3.09 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 25× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: rand in wp-content/plugins/corona-covid-19-stats/includes/widgets/global-card.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/corona-covid-19-stats/includes/covid-widget.php:85
- > PHP Notice
Undefined variable: bgcolor in wp-content/plugins/corona-covid-19-stats/includes/widgets/global-card.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/corona-covid-19-stats/includes/notices.php:39
- > PHP Notice
Undefined variable: labelcases in wp-content/plugins/corona-covid-19-stats/includes/widgets/global-card.php on line 3
- > PHP Notice
Undefined variable: cases in wp-content/plugins/corona-covid-19-stats/includes/widgets/global-card.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/corona-covid-19-stats/includes/scripts.php:5
- > PHP Notice
Undefined variable: recovered in wp-content/plugins/corona-covid-19-stats/includes/widgets/global-card.php on line 3
- > PHP Notice
Undefined variable: width in wp-content/plugins/corona-covid-19-stats/includes/widgets/global-card.php on line 3
- > PHP Notice
Undefined variable: bgcolor in wp-content/plugins/corona-covid-19-stats/includes/widgets/global-wide.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% 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
6 plugin tags: coronavirus, covid-19, stats, virus, covid...
corona-covid-19-stats/corona-covid-stats.php 77% from 13 tests
This is the main PHP file of "Coronavirus (COVID-19) Live Stats & Updates - Beautiful Graphics, Charts, Wordlwide / Country Stats (USA, Spain, China, Pakistan ...)" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("corona-covid-19-stats.php" instead of "corona-covid-stats.php")
- Domain Path: The domain path folder does not exist ("/languages/")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,632 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 17 | 7 | 677 |
JavaScript | 14 | 57 | 44 | 669 |
PHP | 10 | 74 | 71 | 235 |
Markdown | 1 | 26 | 0 | 51 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 4 | 66.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There were not PNG files found in your plugin