Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼9.03ms] Passed 4 tests
Analyzing server-side resources used by Corona Awareness Popup
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.76 ▼5.77 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.24 ▼2.15 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.22 ▼4.60 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.90 ▼23.59 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.13 ▼2.11 |
Corona Awareness /wp-admin/options-general.php?page=edscv-corona-awareness | 3.35 | 39.32 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Corona Awareness Popup
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲229 | 13.53 ▼1.05 | 10.93 ▲9.30 | 58.28 ▲13.58 |
Dashboard /wp-admin | 2,210 ▲19 | 4.87 ▼1.03 | 110.54 ▲11.53 | 38.61 ▼4.43 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.02 | 38.41 ▼3.23 | 36.70 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.42 ▲5.82 | 659.83 ▼21.36 | 50.44 ▼3.39 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.22 ▲0.03 | 93.34 ▼7.60 | 40.32 ▼3.50 |
Corona Awareness /wp-admin/options-general.php?page=edscv-corona-awareness | 1,637 | 7.09 | 140.77 | 76.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/corona-awareness-popup/templates/popup-body.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: covid-19, corona
corona-awareness-popup/edscv-corona.php 77% from 13 tests
This is the main PHP file of "Corona Awareness Popup" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("corona-awareness-popup.php" instead of "edscv-corona.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected543 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 86 | 170 | 332 |
JavaScript | 2 | 33 | 15 | 126 |
CSS | 1 | 1 | 0 | 85 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 24 | |
▷ Static methods | 3 | 12.50% |
▷ Public methods | 23 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.17% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 2 | 33.33% |
▷ Class constants | 4 | 66.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/symptom-headache.png | 5.10KB | 3.83KB | ▼ 24.98% |
assets/images/symptom-fever.png | 4.90KB | 3.64KB | ▼ 25.87% |
assets/images/preventation-mask.png | 3.45KB | 2.31KB | ▼ 32.94% |
assets/images/symptom-sore-cough.png | 4.84KB | 3.58KB | ▼ 26.10% |
assets/images/preventation-wash-hands.png | 3.56KB | 2.41KB | ▼ 32.47% |