Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▲1.81ms] Passed 4 tests
This is a short check of server-side resources used by WP Proportion Image Maker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.93 ▼4.86 |
Dashboard /wp-admin | 3.42 ▲0.11 | 55.45 ▲5.15 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 54.02 ▲7.28 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 96.85 ▲4.52 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.45 ▲2.44 |
Create proportion image /wp-admin/upload.php?page=setting_for_proportion | 3.32 | 39.16 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Proportion Image Maker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲202 | 14.87 ▲0.49 | 1.70 ▼0.19 | 45.69 ▼0.97 |
Dashboard /wp-admin | 2,369 ▲166 | 6.69 ▲0.79 | 133.13 ▲16.35 | 39.95 ▼5.70 |
Posts /wp-admin/edit.php | 2,271 ▲171 | 3.69 ▲1.70 | 48.32 ▲9.14 | 33.77 ▼5.37 |
Add New Post /wp-admin/post-new.php | 1,536 ▼10 | 23.33 ▲0.26 | 665.78 ▲10.18 | 35.76 ▼26.65 |
Media Library /wp-admin/upload.php | 1,414 ▲17 | 4.48 ▲0.19 | 86.84 ▼23.24 | 46.89 ▼0.39 |
Create proportion image /wp-admin/upload.php?page=setting_for_proportion | 1,192 | 3.24 | 47.14 | 82.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-proportion-image-maker/includes/admin/settings.php:504
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Contributors: No tags were detected
- Contributors: Contributors not specified
wp-proportion-image-maker/wp-proportion.php 69% from 13 tests
"WP Proportion Image Maker" version 1.0.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-proportion-image-maker.php" instead of "wp-proportion.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,668 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 1,152 | 1,034 | 4,127 |
PHP | 3 | 164 | 344 | 420 |
CSS | 1 | 13 | 0 | 71 |
PO File | 1 | 18 | 20 | 50 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 3 | 9.09% |
▷ Public methods | 25 | 75.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 24.24% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/images/scale.png | 0.95KB | 0.21KB | ▼ 77.61% |
includes/admin/images/product.png | 136.43KB | 50.10KB | ▼ 63.28% |