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.01MB] [CPU: ▼7.07ms] Passed 4 tests
This is a short check of server-side resources used by Addonse
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.54 ▼3.73 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.87 ▲1.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.72 ▼3.43 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.85 ▼22.45 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.72 ▲5.30 |
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, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Addonse
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.25 ▼0.02 | 1.62 ▼0.08 | 53.47 ▲9.82 |
Dashboard /wp-admin | 2,198 ▲18 | 5.54 ▼0.10 | 85.64 ▲0.04 | 41.58 ▼1.18 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.02 ▲0.03 | 38.30 ▼4.33 | 38.20 ▲5.08 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.21 ▼0.38 | 667.58 ▲51.23 | 60.29 ▲2.03 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.19 ▼0.08 | 107.57 ▲4.47 | 48.98 ▲3.86 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
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
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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > 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 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
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 review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected551 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
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected