Benchmarks
Plugin footprint Passed 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.15MB] [CPU: ▼143.58ms] Passed 4 tests
An overview of server-side resources used by Zone Pandemic Covid19
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.24 | 41.27 ▲13.73 |
Dashboard /wp-admin | 3.24 ▲0.19 | 56.56 ▲2.02 |
Posts /wp-admin/edit.php | 3.29 ▲0.18 | 52.39 ▲2.75 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.11 | 101.16 ▼575.92 |
Media Library /wp-admin/upload.php | 3.12 ▲0.12 | 37.37 ▼3.18 |
Server storage [IO: ▲3.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 59 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Zone Pandemic Covid19
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,934 ▲338 | 20.87 ▲5.53 | 76.57 ▲64.97 | 89.55 ▲34.55 |
Dashboard /wp-admin | 3,238 ▲307 | 6.72 ▲0.56 | 186.05 ▲4.81 | 190.08 ▲60.23 |
Posts /wp-admin/edit.php | 2,782 ▲43 | 3.26 ▲0.55 | 99.07 ▲19.73 | 95.23 ▲0.06 |
Add New Post /wp-admin/post-new.php | 3,575 ▲1,960 | 14.92 ▼6.56 | 522.04 ▲194.37 | 120.89 ▲15.58 |
Media Library /wp-admin/upload.php | 1,865 ▲58 | 5.50 ▲0.50 | 169.59 ▼12.91 | 125.98 ▼5.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/zone-pandemic-covid-19/public/view/zone-pandemic-covid19-global.php
- > /wp-content/plugins/zone-pandemic-covid-19/admin/view/tab-home.php
- > /wp-content/plugins/zone-pandemic-covid-19/public/view/zone-pandemic-covid19-country.php
- > /wp-content/plugins/zone-pandemic-covid-19/public/view/zone-pandemic-covid19-continent.php
- > /wp-content/plugins/zone-pandemic-covid-19/admin/view/widget-pandemic-covid19-global.php
- > /wp-content/plugins/zone-pandemic-covid-19/admin/view/tab-help.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: atts in wp-content/plugins/zone-pandemic-covid-19/public/view/zone-pandemic-covid19-country.php on line 16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/zone-pandemic-covid-19/admin/view/pandemic-covid19-admin-display.php:18
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/zone-pandemic-covid-19/public/view/zone-pandemic-covid19-continent.php on line 16
- > PHP Notice
Undefined variable: atts in wp-content/plugins/zone-pandemic-covid-19/public/view/zone-pandemic-covid19-continent.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/zone-pandemic-covid-19/public/view/zone-pandemic-covid19-global.php on line 16
- > PHP Notice
Undefined variable: atts in wp-content/plugins/zone-pandemic-covid-19/public/view/zone-pandemic-covid19-global.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/zone-pandemic-covid-19/public/view/zone-pandemic-covid19-table.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/zone-pandemic-covid-19/public/view/zone-pandemic-covid19-map.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/zone-pandemic-covid-19/public/view/zone-pandemic-covid19-graph.php:19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/zone-pandemic-covid-19/public/view/zone-pandemic-covid19-country.php on line 16
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Requires php: Version format is invalid
zone-pandemic-covid-19/pandemic-covid19.php 85% from 13 tests
The main PHP script in "Zone Pandemic Covid19" version 1.0.9 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zone-pandemic-covid-19.php" instead of "pandemic-covid19.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin18,886 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 196 | 82 | 10,243 |
JavaScript | 12 | 2,013 | 7,102 | 6,279 |
PHP | 28 | 287 | 959 | 2,345 |
JSON | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 2.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 2 | 1.94% |
▷ Public methods | 78 | 75.73% |
▷ Protected methods | 18 | 17.48% |
▷ Private methods | 7 | 6.80% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin