Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼313.37ms] Passed 4 tests
Server-side resources used by Advanced Image Comparison for Elementor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 57.85 ▲10.21 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.40 ▼3.74 |
Posts /wp-admin/edit.php | 3.64 ▲0.01 | 35.81 ▼21.84 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 92.77 ▼1,226.69 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 23.07 ▼1.20 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Image Comparison for Elementor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,809 ▲55 | 16.18 ▲0.19 | 5.59 ▼0.34 | 2.57 ▲0.04 |
Dashboard /wp-admin | 2,926 ▲69 | 6.01 ▼0.11 | 155.22 ▲28.61 | 177.10 ▲5.53 |
Posts /wp-admin/edit.php | 2,713 ▲25 | 3.24 ▲0.00 | 63.75 ▼0.36 | 211.76 ▲71.51 |
Add New Post /wp-admin/post-new.php | 1,678 ▼33 | 16.28 ▼5.10 | 428.28 ▼41.55 | 166.64 ▼15.02 |
Media Library /wp-admin/upload.php | 1,718 ▲20 | 5.53 ▼0.03 | 176.12 ▲35.69 | 190.86 ▼4.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/advanced-image-comparison-for-elementor/widgets/AICImageComparisonWidget.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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:
- Requires php: Invalid version format
advanced-image-comparison-for-elementor/advanced-image-comparison-for-elementor.php 92% from 13 tests
The primary PHP file in "Advanced Image Comparison for Elementor" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin797 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 77 | 186 | 745 |
JSON | 2 | 0 | 0 | 40 |
JavaScript | 4 | 1 | 0 | 10 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 2 | 11.76% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin