Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.51ms] Passed 4 tests
A check of server-side resources used by Diving Calculators
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 51.36 ▲11.55 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.01 ▼4.34 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.20 ▲0.01 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.35 ▼6.65 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.74 ▲4.94 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
diving_calculators_activation_time |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_dc |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Diving Calculators
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.37 | 1.81 ▲0.25 | 45.74 ▲0.29 |
Dashboard /wp-admin | 2,195 ▲21 | 5.63 ▲0.06 | 89.72 ▼3.52 | 39.42 ▼3.27 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.07 | 35.45 ▲0.41 | 36.27 ▲0.73 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.28 ▲0.20 | 645.00 ▼22.24 | 51.16 ▲0.90 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.05 | 106.11 ▼0.35 | 49.45 ▲0.01 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- diving_calculators_activation_time
- widget_recent-posts
- widget_recent-comments
- widget_dc
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/diving-calculators/includes/widgets/widgets.php:9
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: diving, widget, scuba, calculators
diving-calculators/diving-calculators.php Passed 13 tests
"Diving Calculators" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
26 characters long description:
Diving Calculators Widget.
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 detected791 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 157 | 433 | 602 |
PO File | 1 | 51 | 66 | 124 |
JavaScript | 1 | 5 | 0 | 37 |
CSS | 2 | 8 | 1 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 23 | 85.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.81% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
PNG images were not found in this plugin