Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼10.37ms] Passed 4 tests
This is a short check of server-side resources used by PS4L Pond Calculator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.08 ▼13.08 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.37 ▼1.25 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 42.31 ▼5.16 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 80.82 ▼21.97 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.05 ▲1.48 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_pond_calculator_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for PS4L Pond Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.79 ▼0.77 | 11.38 ▲9.70 | 62.56 ▲14.95 |
Dashboard /wp-admin | 2,206 ▲15 | 5.02 ▼0.87 | 111.05 ▲6.49 | 41.82 ▲2.04 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.02 | 34.56 ▼4.15 | 33.35 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.16 ▼0.27 | 625.11 ▼29.98 | 51.86 ▼14.03 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.26 ▲0.02 | 95.22 ▼2.36 | 44.39 ▲1.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_pond_calculator_widget
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ps4l-pond-calculator/inc/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/ps4l-pond-calculator/pond-calculator.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (front-end side bar view), #2 (Widget panel view)
ps4l-pond-calculator/pond-calculator.php 92% from 13 tests
The main file in "PS4L Pond Calculator" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ps4l-pond-calculator.php" instead of "pond-calculator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin19,643 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 42 | 31 | 17,461 |
JavaScript | 6 | 685 | 258 | 1,916 |
PHP | 2 | 46 | 27 | 266 |
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.19 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
3 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/cross-icon.png | 1.63KB | 0.78KB | ▼ 52.16% |
assets/screenshot-2.png | 65.42KB | 17.88KB | ▼ 72.67% |
img/water-img.png | 45.63KB | 10.41KB | ▼ 77.18% |