Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.40ms] Passed 4 tests
This is a short check of server-side resources used by WP COVID-19 DATA
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 39.95 ▼5.98 |
Dashboard /wp-admin | 3.41 ▲0.10 | 50.23 ▼2.09 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 48.06 ▼4.34 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 87.31 ▼9.20 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.00 ▲0.49 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
WP COVID-19 DATA: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲119 | 14.20 ▼0.17 | 15.49 ▲13.33 | 51.38 ▲6.68 |
Dashboard /wp-admin | 2,202 ▲25 | 5.50 ▼0.09 | 89.90 ▲0.87 | 38.25 ▼1.76 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.05 | 33.67 ▼6.61 | 34.22 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 22.91 ▼0.74 | 673.06 ▲7.11 | 60.38 ▲1.79 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.17 ▼0.06 | 108.03 ▲0.11 | 47.55 ▲0.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-covid-19-data/admin/partials/wp-covid-19-data-admin-display.php
- > /wp-content/plugins/wp-covid-19-data/public/partials/wp-covid-19-data-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: covid-19, wp covid-19, covid-19 data, wordpress covid-19
wp-covid-19-data/wp-covid-19-data.php Passed 13 tests
This is the main PHP file of "WP COVID-19 DATA" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
This is the plugin to display COVID-19 data from around the world.
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 plugin642 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 165 | 603 | 542 |
PO File | 2 | 25 | 49 | 83 |
Markdown | 1 | 6 | 0 | 12 |
JavaScript | 2 | 2 | 27 | 4 |
CSS | 2 | 0 | 4 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 25 | 75.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 24.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
PNG images were not found in this plugin