Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.62MB] [CPU: ▲0.29ms] Passed 4 tests
Analyzing server-side resources used by Corona Test Results
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.71 ▲1.79 |
Dashboard /wp-admin | 4.14 ▲0.83 | 51.33 ▲6.76 |
Posts /wp-admin/edit.php | 4.20 ▲0.84 | 50.87 ▲0.55 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 90.26 ▼7.89 |
Media Library /wp-admin/upload.php | 4.00 ▲0.76 | 43.87 ▲6.72 |
Assign results /wp-admin/admin.php?page=corona-test-results | 3.99 | 46.19 |
Register test /wp-admin/admin.php?page=corona-test-results-register | 3.99 | 42.19 |
Settings /wp-admin/admin.php?page=corona-test-results-settings | 4.00 | 41.40 |
Server storage [IO: ▲6.98MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_va_testresults |
New WordPress options |
---|
corona_test_results_options |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
corona_test_results_activationtime |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Corona Test Results
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲107 | 13.21 ▼1.09 | 1.75 ▼0.03 | 44.71 ▼0.18 |
Dashboard /wp-admin | 2,248 ▲60 | 5.88 ▲0.95 | 99.18 ▼6.00 | 38.15 ▼5.63 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.08 ▲0.02 | 38.03 ▼4.03 | 31.73 ▼4.12 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 23.13 ▲5.70 | 685.03 ▲11.56 | 56.07 ▼2.53 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.26 ▲0.05 | 99.43 ▼18.13 | 41.48 ▼8.96 |
Assign results /wp-admin/admin.php?page=corona-test-results | 977 | 9.60 | 259.95 | 29.64 |
Register test /wp-admin/admin.php?page=corona-test-results-register | 1,095 | 9.49 | 243.63 | 41.70 |
Settings /wp-admin/admin.php?page=corona-test-results-settings | 1,594 | 12.85 | 290.37 | 37.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_va_testresults
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- corona_test_results_activationtime
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- corona_test_results_options
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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/corona-test-results/lib/DataEncryption.class.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/sodium_compat/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/corona-test-results/lib/DataEncryption.class.php on line 2
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/corona-test-results/lib/DataEncryption.class.php on line 2
- > PHP Warning
require_once(ABSPATHWPINC/sodium_compat/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/corona-test-results/lib/DataEncryption.class.php on line 2
- > PHP Warning
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
corona-test-results/corona-test-results.php 92% from 13 tests
The entry point to "Corona Test Results" version 1.11.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 629 characters long)
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
There were no executable files found in this plugin7,250 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 824 | 640 | 3,966 |
JavaScript | 6 | 222 | 66 | 1,723 |
PO File | 1 | 389 | 650 | 1,560 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 16 | |
▷ Static methods | 10 | 62.50% |
▷ Public methods | 8 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 50.00% |
Functions | 171 | |
▷ Named functions | 157 | 91.81% |
▷ Anonymous functions | 14 | 8.19% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin