Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.59MB] [CPU: ▼15.50ms] Passed 4 tests
Server-side resources used by My FastAPP Photo Editor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 47.74 ▲4.54 |
Dashboard /wp-admin | 3.43 ▲0.12 | 56.90 ▲6.27 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.12 ▲0.04 |
Add New Post /wp-admin/post-new.php | 3.24 ▼2.65 | 39.84 ▼70.27 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.54 ▲3.71 |
Server storage [IO: ▲4.97MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 115 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by My FastAPP Photo Editor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲74 | 14.35 ▲0.20 | 1.80 ▲0.08 | 42.04 ▼2.37 |
Dashboard /wp-admin | 2,211 ▲31 | 5.55 ▲0.03 | 94.01 ▲6.21 | 40.86 ▼6.11 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 1.99 ▼0.03 | 37.98 ▲0.61 | 34.62 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.13 ▼0.35 | 650.45 ▲10.50 | 51.13 ▼6.62 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.23 ▲0.03 | 102.08 ▼7.74 | 41.76 ▼3.39 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 42× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/mfa-photo-editor/sos/wp/be/menu.php
- > /wp-content/plugins/mfa-photo-editor/sos/wp/metabox.php
- > /wp-content/plugins/mfa-photo-editor/sos/wp/elementor/section.php
- > /wp-content/plugins/mfa-photo-editor/src/config.php
- > /wp-content/plugins/mfa-photo-editor/loader.php
- > /wp-content/plugins/mfa-photo-editor/sos/wp/data/wptable.php
- > /wp-content/plugins/mfa-photo-editor/sos/wp/plugin.php
- > /wp-content/plugins/mfa-photo-editor/sos/wp/user.php
- > /wp-content/plugins/mfa-photo-editor/sos/wp/data/wpcolumntype.php
- > /wp-content/plugins/mfa-photo-editor/sos/wp/elementor/handler.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_MFA_PHOTOEDITOR\\SosPlugin' not found in wp-content/plugins/mfa-photo-editor/admin/gallery.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues 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
8 plugin tags: scenario, photo, images, my fastapp, image...
mfa-photo-editor/mfa-photo-editor.php Passed 13 tests
"My FastAPP Photo Editor" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
115 characters long description:
Allows you to select images from the Wordpress Media Library for the Photo Editor feature of the My FastAPP plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin19,041 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 16 | 3,407 | 8 | 7,647 |
SVG | 4 | 0 | 15 | 6,852 |
PHP | 43 | 611 | 612 | 4,072 |
JavaScript | 3 | 27 | 3 | 342 |
PO File | 1 | 30 | 61 | 127 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 6 | |
Classes | 35 | |
▷ Abstract classes | 1 | 2.86% |
▷ Concrete classes | 34 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 259 | |
▷ Static methods | 27 | 10.42% |
▷ Public methods | 194 | 74.90% |
▷ Protected methods | 43 | 16.60% |
▷ Private methods | 22 | 8.49% |
Functions | 27 | |
▷ Named functions | 6 | 22.22% |
▷ Anonymous functions | 21 | 77.78% |
Constants | 34 | |
▷ Global constants | 1 | 2.94% |
▷ Class constants | 33 | 97.06% |
▷ Public constants | 33 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.95MB with 0.68MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
data/scenario.png | 555.75KB | 165.09KB | ▼ 70.29% |
data/scenario-thb.png | 41.67KB | 12.70KB | ▼ 69.53% |
data/overlay.png | 346.27KB | 89.62KB | ▼ 74.12% |
data/overlay-thb.png | 30.75KB | 8.75KB | ▼ 71.54% |