Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.02MB] [CPU: ▼295.63ms] Passed 4 tests
An overview of server-side resources used by Addonse
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 53.18 ▲1.88 |
Dashboard /wp-admin | 3.41 ▲0.01 | 33.55 ▼1.93 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 38.28 ▼0.17 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 91.18 ▼1,181.48 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 25.97 ▲1.05 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Addonse
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,805 ▲61 | 14.99 ▼0.97 | 6.67 ▼0.09 | 2.87 ▲0.47 |
Dashboard /wp-admin | 2,905 ▲47 | 6.14 ▼0.08 | 117.24 ▼14.82 | 155.32 ▼2.04 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▲0.00 | 62.48 ▼2.48 | 133.37 ▼5.59 |
Add New Post /wp-admin/post-new.php | 1,786 ▲75 | 21.43 ▲0.31 | 428.61 ▼17.16 | 158.66 ▲3.49 |
Media Library /wp-admin/upload.php | 1,711 ▲13 | 5.42 ▼0.09 | 144.68 ▲4.32 | 187.02 ▼6.90 |
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 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Addonse\\add_action() in wp-content/plugins/addonse/includes/admin-notice.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
1 plugin tags: elementor widget image mask
addonse/addonse.php Passed 13 tests
Analyzing the main PHP file in "Addonse" version 1.0
75 characters long description:
Creative image widget for Elementor, your favourite WordPress page builder.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin551 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 95 | 107 | 489 |
CSS | 1 | 5 | 7 | 44 |
SVG | 1 | 0 | 0 | 17 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 1 | 20.00% |
Methods | 30 | |
▷ Static methods | 5 | 16.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 2 | 6.67% |
▷ Private methods | 3 | 10.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
PNG images were not found in this plugin