Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼7.40ms] Passed 4 tests
An overview of server-side resources used by Easy Replace Image
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 38.87 ▼1.56 |
Dashboard /wp-admin | 3.48 ▲0.13 | 44.00 ▼15.56 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.83 ▲2.51 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 79.99 ▼14.92 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.60 ▲2.46 |
Easy Replace Image /wp-admin/tools.php?page=easy-replace-image-settings | 3.39 | 31.76 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
srifu_plugin_notice_db_ver |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Replace Image
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲109 | 14.01 ▼0.12 | 1.78 ▲0.08 | 37.65 ▼6.63 |
Dashboard /wp-admin | 2,261 ▲86 | 5.56 ▼0.16 | 93.24 ▼12.04 | 76.13 ▲32.51 |
Posts /wp-admin/edit.php | 2,170 ▲70 | 2.11 ▲0.10 | 39.80 ▼2.14 | 37.99 ▼0.45 |
Add New Post /wp-admin/post-new.php | 1,586 ▲51 | 23.18 ▲0.02 | 659.06 ▲35.74 | 178.16 ▲121.82 |
Media Library /wp-admin/upload.php | 1,463 ▲66 | 4.23 ▲0.06 | 107.88 ▲5.42 | 81.80 ▲38.32 |
Easy Replace Image /wp-admin/tools.php?page=easy-replace-image-settings | 934 | 2.01 | 24.89 | 38.75 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- srifu_plugin_notice_db_ver
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-replace-image/easy-replace-image.php:34
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid plugin version format
easy-replace-image/easy-replace-image.php 85% from 13 tests
The main PHP script in "Easy Replace Image" version 3.3.3 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 238 characters long)
- 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected942 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 105 | 295 | 790 |
PO File | 1 | 40 | 53 | 148 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 111.00 |
▷ Minimum class complexity | 111.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 35 | 94.59% |
▷ Public methods | 36 | 97.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.70% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 4 | 50.00% |
▷ Class constants | 4 | 50.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-128x128.png | 6.62KB | 3.58KB | ▼ 45.84% |
assets/images/buy-me-a-coffee.png | 19.75KB | 7.15KB | ▼ 63.78% |