Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.46ms] Passed 4 tests
An overview of server-side resources used by Nationwide Auto-Transportation Quote Calculator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.47 ▼4.73 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.13 ▼0.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.29 ▲0.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.12 ▼9.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.19 ▲4.62 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Nationwide Auto-Transportation Quote Calculator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.28 ▼1.10 | 1.68 ▼1.48 | 44.44 ▼1.15 |
Dashboard /wp-admin | 2,209 ▲21 | 4.89 ▼0.13 | 109.97 ▼8.89 | 71.96 ▲24.62 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 1.97 ▼0.04 | 38.37 ▲2.34 | 34.97 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 22.98 ▼0.37 | 753.02 ▲57.56 | 56.57 ▼3.74 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.23 ▼0.05 | 100.06 ▼6.15 | 66.75 ▲22.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nationwide-auto-transportation-quote-calculator/functions.php:463
- > PHP Fatal error
Uncaught Error: Call to undefined function nat_qc_registerCalculatorAssets() in wp-content/plugins/nationwide-auto-transportation-quote-calculator/calculator.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/nationwide-auto-transportation-quote-calculator/nat-quote-calculator.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
nationwide-auto-transportation-quote-calculator/nat-quote-calculator.php 92% from 13 tests
The main file in "Nationwide Auto-Transportation Quote Calculator" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nationwide-auto-transportation-quote-calculator.php" instead of "nat-quote-calculator.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
Success! There were no dangerous files found in this plugin2,062 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 80 | 21 | 716 |
PHP | 3 | 135 | 56 | 695 |
JavaScript | 3 | 112 | 38 | 651 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
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 | 12 | |
▷ Named functions | 12 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/qc-icon.png | 0.94KB | 0.93KB | ▼ 0.62% |
img/nat-logo.png | 7.63KB | 4.04KB | ▼ 47.12% |