Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▲0.24ms] Passed 4 tests
Server-side resources used by Majestic Before After Image
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.40 ▼0.46 |
Dashboard /wp-admin | 3.64 ▲0.33 | 49.95 ▼1.39 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 48.71 ▲3.77 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 94.81 ▲0.22 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 38.97 ▲2.60 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Majestic Before After Image
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲116 | 13.23 ▼1.08 | 1.73 ▼0.05 | 45.45 ▼2.44 |
Dashboard /wp-admin | 2,254 ▲69 | 5.81 ▼0.05 | 103.08 ▼13.83 | 42.94 ▼2.60 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.03 ▼0.02 | 37.55 ▲0.95 | 34.79 ▲2.45 |
Add New Post /wp-admin/post-new.php | 1,547 ▲26 | 23.36 ▲0.03 | 635.64 ▼2.02 | 51.21 ▼8.90 |
Media Library /wp-admin/upload.php | 1,429 ▲38 | 4.29 ▲0.08 | 97.88 ▼1.11 | 42.09 ▼2.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/majestic-before-after-image/inc/elementor/elementor.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/majestic-before-after-image/inc/mbai.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/majestic-before-after-image/inc/admin-page/admin-page.php:23
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/majestic-before-after-image/inc/elementor/widget.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function Nilambar\\Welcome\\add_action() in wp-content/plugins/majestic-before-after-image/vendor/ernilambar/wp-welcome/init.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
majestic-before-after-image/majestic-before-after-image.php Passed 13 tests
The main PHP script in "Majestic Before After Image" version 1.0.10 is automatically included on every request by WordPress
111 characters long description:
Majestic Before After Image is an Elementor addon to show the comparison of two images with a draggable handle.
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
Everything looks great! No dangerous files found in this plugin3,580 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 670 | 1,181 | 2,440 |
JavaScript | 5 | 143 | 82 | 635 |
CSS | 3 | 68 | 0 | 353 |
JSON | 3 | 0 | 0 | 150 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 18.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 1 | 6.25% |
Methods | 139 | |
▷ Static methods | 38 | 27.34% |
▷ Public methods | 113 | 81.29% |
▷ Protected methods | 13 | 9.35% |
▷ Private methods | 13 | 9.35% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 15 | |
▷ Global constants | 13 | 86.67% |
▷ Class constants | 2 | 13.33% |
▷ Public constants | 2 | 100.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
There were not PNG files found in your plugin