Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.48MB] [CPU: ▼0.60ms] Passed 4 tests
Server-side resources used by Dive Sites Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 42.67 ▲0.43 |
Dashboard /wp-admin | 3.82 ▲0.51 | 58.15 ▲5.15 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 57.53 ▲6.27 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 91.78 ▼10.26 |
Media Library /wp-admin/upload.php | 3.66 ▲0.42 | 40.86 ▲2.29 |
Display Format /wp-admin/admin.php?page=dive_sites_format | 3.65 | 43.32 |
Dashboard /wp-admin/admin.php?page=dive_sites_manager | 3.65 | 46.52 |
Dive Sites Characteristics /wp-admin/admin.php?page=dive_sites_characteristics | 3.65 | 44.90 |
Add New /wp-admin/post-new.php?post_type=divesite | 6.39 | 89.93 |
All Dive Sites /wp-admin/edit.php?post_type=divesite | 3.74 | 39.80 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
cfish_dsm_format |
cfish_dsm |
widget_recent-posts |
theysaidso_admin_options |
cfish_dsm_characteristics |
cfish_dsm_loc |
widget_theysaidso_widget |
cfish_dsm_map |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Dive Sites Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,018 ▲232 | 15.10 ▲0.70 | 1.62 ▼0.69 | 38.94 ▼8.87 |
Dashboard /wp-admin | 2,419 ▲242 | 6.41 ▲0.73 | 116.15 ▲16.47 | 38.49 ▼12.47 |
Posts /wp-admin/edit.php | 2,352 ▲255 | 3.64 ▲1.60 | 48.51 ▲11.15 | 31.56 ▼6.32 |
Add New Post /wp-admin/post-new.php | 1,598 ▲51 | 23.23 ▼0.15 | 677.77 ▲1.38 | 38.59 ▼19.49 |
Media Library /wp-admin/upload.php | 1,495 ▲95 | 4.39 ▲0.22 | 87.73 ▼30.45 | 44.89 ▼2.70 |
Display Format /wp-admin/admin.php?page=dive_sites_format | 1,505 | 3.73 | 63.71 | 63.12 |
Dashboard /wp-admin/admin.php?page=dive_sites_manager | 1,136 | 3.29 | 45.77 | 26.51 |
Dive Sites Characteristics /wp-admin/admin.php?page=dive_sites_characteristics | 1,186 | 3.31 | 43.57 | 27.36 |
Add New /wp-admin/post-new.php?post_type=divesite | 6,276 | 19.02 | 840.08 | 38.04 |
All Dive Sites /wp-admin/edit.php?post_type=divesite | 1,346 | 3.65 | 47.84 | 29.63 |
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 did not uninstall successfully, leaving 11 options in the database
- cfish_dsm
- cfish_dsm_loc
- widget_theysaidso_widget
- can_compress_scripts
- cfish_dsm_map
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- cfish_dsm_characteristics
- widget_recent-comments
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=divesite
- > Notice in wp-content/plugins/dive-sites-manager/cfish-dsm-inc/Base/DiveSitesController.php+263
Undefined index: location
SRP 0% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/dive-sites-manager/dive-sites-manager.php
- 26× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'cfishDSMInc\\Base\\BaseController' not found in wp-content/plugins/dive-sites-manager/cfish-dsm-inc/Pages/Format.php:13
- > PHP Notice
Undefined variable: atts in wp-content/plugins/dive-sites-manager/templates/divesites-horizontal-left.php on line 9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/dive-sites-manager/templates/divesites-horizontal-left.php:11
- > PHP Fatal error
Uncaught Error: Class 'cfishDSMInc\\Base\\BaseController' not found in wp-content/plugins/dive-sites-manager/cfish-dsm-inc/Api/Callbacks/FormatCallbacks.php:11
- > PHP Fatal error
Uncaught Error: Class 'cfishDSMInc\\Base\\BaseController' not found in wp-content/plugins/dive-sites-manager/cfish-dsm-inc/Base/I18n.php:8
- > PHP Fatal error
Uncaught Error: Class 'cfishDSMInc\\Base\\BaseController' not found in wp-content/plugins/dive-sites-manager/cfish-dsm-inc/Base/DiveSitesController.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/dive-sites-manager/templates/divesites-vertical.php:11
- > PHP Notice
Undefined variable: atts in wp-content/plugins/dive-sites-manager/templates/divesites-horizontal-right.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'cfishDSMInc\\Base\\BaseController' not found in wp-content/plugins/dive-sites-manager/cfish-dsm-inc/Api/Callbacks/ManagerCallbacks.php:10
- > PHP Fatal error
Uncaught Error: Class 'cfishDSMInc\\Base\\BaseController' not found in wp-content/plugins/dive-sites-manager/cfish-dsm-inc/Pages/Dashboard.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: dive resort, dive center, scuba, dive, diving...
dive-sites-manager/dive-sites-manager.php 92% from 13 tests
The main file in "Dive Sites Manager" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,783 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 475 | 329 | 2,093 |
JavaScript | 3 | 19 | 16 | 390 |
PO File | 1 | 99 | 119 | 242 |
CSS | 3 | 3 | 2 | 57 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 1 | 4.55% |
Methods | 114 | |
▷ Static methods | 8 | 7.02% |
▷ Public methods | 112 | 98.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.75% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/horizontal-right.png | 3.74KB | 1.16KB | ▼ 68.97% |
assets/horizontal-left.png | 3.78KB | 1.16KB | ▼ 69.32% |
assets/watercolor.png | 136.84KB | 54.20KB | ▼ 60.39% |
assets/vertical.png | 3.66KB | 1.15KB | ▼ 68.54% |
assets/standard.png | 33.68KB | 12.34KB | ▼ 63.35% |