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.52MB] [CPU: ▼1.16ms] Passed 4 tests
Analyzing server-side resources used by COVID19 - Coronavirus Outbreak Data
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 41.30 ▼1.37 |
Dashboard /wp-admin | 3.82 ▲0.52 | 50.19 ▼1.33 |
Posts /wp-admin/edit.php | 3.93 ▲0.58 | 52.68 ▲4.44 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.52 | 100.99 ▼3.47 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 38.83 ▲1.53 |
Server storage [IO: ▲4.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_corona_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for COVID19 - Coronavirus Outbreak Data
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲20 | 14.25 ▼0.10 | 1.88 ▼0.07 | 38.27 ▼4.84 |
Dashboard /wp-admin | 2,212 ▲35 | 5.66 ▲0.08 | 83.04 ▼12.34 | 71.62 ▲30.50 |
Posts /wp-admin/edit.php | 2,123 ▲26 | 1.98 ▲0.00 | 40.09 ▲3.39 | 34.89 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 18.15 ▼5.17 | 654.67 ▼28.90 | 165.07 ▲108.56 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.19 ▼0.01 | 104.74 ▲1.82 | 76.00 ▲32.35 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_corona_widget
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ce-corona/classes/admin/views/settings.php
- > /wp-content/plugins/ce-corona/ce-corona.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ce-corona/classes/admin/widget.php:6
- > PHP Warning
Use of undefined constant CE_CORONA_ASSETS - assumed 'CE_CORONA_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/ce-corona/classes/admin/views/settings.php on line 57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: covid19, coronavirus, corona
ce-corona/ce-corona.php Passed 13 tests
The principal PHP file in "COVID19 - Coronavirus Outbreak Data" v. 0.7.0 is loaded by WordPress automatically on each request
72 characters long description:
Realtime covid19 outbreak data checker and Awareness Plugin coronavirus.
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 detected6,537 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 247 | 475 | 3,794 |
CSS | 8 | 186 | 12 | 1,196 |
PO File | 1 | 397 | 451 | 809 |
JavaScript | 7 | 21 | 707 | 693 |
SVG | 1 | 0 | 0 | 45 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 16.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 85 | |
▷ Static methods | 34 | 40.00% |
▷ Public methods | 71 | 83.53% |
▷ Protected methods | 7 | 8.24% |
▷ Private methods | 7 | 8.24% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/admin/elementor-elements.png | 2.99KB | 3.37KB | 0.00% |
assets/images/logo.png | 3.46KB | 3.85KB | 0.00% |