Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼0.55ms] Passed 4 tests
Analyzing server-side resources used by WP COVID-19 Schema
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 43.94 ▼5.25 |
Dashboard /wp-admin | 3.49 ▲0.18 | 59.77 ▲6.05 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 51.45 ▲0.14 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 98.01 ▼3.16 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 42.32 ▲6.87 |
About /wp-admin/admin.php?page=wp-covid-schema | 3.38 | 40.13 |
Settings /wp-admin/admin.php?page=wp-covid-schema-plugin-settings | 3.43 | 46.97 |
Server storage [IO: ▲0.25MB] [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: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP COVID-19 Schema: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲157 | 14.15 ▼0.44 | 2.19 ▲0.13 | 44.34 ▲0.75 |
Dashboard /wp-admin | 2,299 ▲119 | 5.70 ▲0.03 | 94.92 ▲6.86 | 43.24 ▲2.24 |
Posts /wp-admin/edit.php | 2,205 ▲102 | 2.05 ▲0.03 | 35.35 ▼6.71 | 33.87 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,560 ▲32 | 23.06 ▼0.36 | 692.80 ▲74.33 | 52.73 ▼0.83 |
Media Library /wp-admin/upload.php | 1,504 ▲107 | 4.27 ▲0.11 | 97.29 ▼12.68 | 45.93 ▲2.98 |
About /wp-admin/admin.php?page=wp-covid-schema | 1,044 | 2.24 | 28.60 | 55.44 |
Settings /wp-admin/admin.php?page=wp-covid-schema-plugin-settings | 1,943 | 2.28 | 28.05 | 40.59 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wp-covid-schema-plugin-settings
- > Notice in wp-content/plugins/wp-covid-19-schema/inc/settings/settings.php+548
Undefined variable: swwpcs_school_closure_encoding_format
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-covid-19-schema/inc/settings/settings.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: structured data, schemaorg, microdata, schema markup, schema...
wp-covid-19-schema/wp-covid19-schema.php 77% from 13 tests
The entry point to "WP COVID-19 Schema" version 1.0.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-covid-19-schema.php" instead of "wp-covid19-schema.php")
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
Good job! No executable or dangerous file extensions detected2,102 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 234 | 19 | 1,184 |
PHP | 2 | 113 | 32 | 832 |
JavaScript | 1 | 52 | 0 | 84 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/settings/images/logo.png | 7.28KB | 3.54KB | ▼ 51.31% |