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.03MB] [CPU: ▼4.14ms] Passed 4 tests
An overview of server-side resources used by Magic Edge - Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 51.90 ▲5.70 |
Dashboard /wp-admin | 3.33 ▲0.03 | 53.89 ▲3.48 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 53.64 ▼2.62 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 89.66 ▼19.98 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.33 ▲2.57 |
Magic Edge Lite /wp-admin/upload.php?page=awssoft-magic-edge-lite | 3.23 | 34.34 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Magic Edge - Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲1.19 | 2.01 ▼2.20 | 42.84 ▼2.98 |
Dashboard /wp-admin | 2,210 ▲19 | 4.82 ▼1.07 | 116.51 ▲10.59 | 42.00 ▼1.61 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.09 | 44.76 ▲8.88 | 40.45 ▲3.56 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.18 ▲0.06 | 676.93 ▲9.66 | 55.48 ▲8.24 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.14 ▼0.09 | 99.02 ▼11.70 | 43.10 ▼6.93 |
Magic Edge Lite /wp-admin/upload.php?page=awssoft-magic-edge-lite | 1,410 | 2.09 | 59.07 | 86.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/magic-edge-lite-image-background-remover/magic-edge-wp-lite.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=awssoft-magic-edge-lite
- > Rendering (warning) in unknown
/wp-content/plugins/magic-edge-lite-image-background-remover/js/me.js?ver=6.3.1 2637 The specified value "undefined" cannot be parsed, or is out of range.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== magic-edge-lite-image-background-remover ===
)
magic-edge-lite-image-background-remover/magic-edge-wp-lite.php 92% from 13 tests
The main file in "Magic Edge - Lite" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("magic-edge-lite-image-background-remover.php" instead of "magic-edge-wp-lite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,474 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,159 | 274 | 3,783 |
CSS | 3 | 114 | 5 | 560 |
PHP | 3 | 65 | 10 | 131 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
32 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/presetSettings.png | 4.86KB | 1.73KB | ▼ 64.34% |
css/images/handIcon.png | 5.21KB | 1.66KB | ▼ 68.22% |
css/images/resizeHorizontalOposite.png | 3.87KB | 1.15KB | ▼ 70.28% |
css/images/previewEdgeMask.png | 6.05KB | 2.70KB | ▼ 55.44% |
css/images/cbarrow.png | 4.27KB | 1.53KB | ▼ 64.28% |