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.00MB] [CPU: ▼4.97ms] Passed 4 tests
An overview of server-side resources used by Lenses Prescription
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.13 ▼3.17 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.98 ▼7.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.98 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.34 ▼8.54 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.04 ▲0.40 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Lenses Prescription
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.28 ▼1.10 | 1.95 ▼0.25 | 38.22 ▼6.27 |
Dashboard /wp-admin | 2,206 ▲15 | 4.89 ▼0.01 | 98.24 ▼10.04 | 44.22 ▼5.18 |
Posts /wp-admin/edit.php | 2,089 ▲21 | 2.05 ▲0.03 | 41.33 ▲5.73 | 34.75 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 18.20 ▲0.65 | 612.72 ▼78.83 | 51.02 ▼31.69 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.11 ▼0.14 | 95.97 ▲0.51 | 40.20 ▼3.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: product options, prescription, contact lenses
lenses-prescription/lenses-prescription.php Passed 13 tests
This is the main PHP file of "Lenses Prescription" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Displays product options as table for contact lenses prescription.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected426 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 163 | 19 | 386 |
JavaScript | 2 | 20 | 0 | 32 |
CSS | 2 | 5 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 6.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 44 | |
▷ Static methods | 4 | 9.09% |
▷ Public methods | 40 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.09% |
Functions | 1 | |
▷ Named functions | 1 | 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.09MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/adminhtml/web/product/edit/dropdown_options.png | 95.13KB | 25.95KB | ▼ 72.72% |