Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼10.80ms] Passed 4 tests
A check of server-side resources used by Affiliates Ecwid Light
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 32.07 ▼5.14 |
Dashboard /wp-admin | 3.37 ▲0.02 | 44.24 ▼19.18 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 44.44 ▼2.85 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 79.56 ▼16.01 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.82 ▲3.22 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Affiliates Ecwid Light
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.72 ▲0.37 | 1.65 ▼0.08 | 38.78 ▼0.28 |
Dashboard /wp-admin | 2,205 ▲25 | 5.56 ▼0.09 | 82.10 ▼6.32 | 40.85 ▲2.29 |
Posts /wp-admin/edit.php | 2,113 ▲16 | 1.98 ▼0.01 | 35.81 ▲2.07 | 30.81 ▼5.06 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.19 ▲0.05 | 686.25 ▲95.38 | 64.39 ▲6.19 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.19 ▲0.01 | 96.92 ▼7.36 | 44.11 ▲0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/affiliates-ecwid-light/affiliates-ecwid-light.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 31 tag instead of maximum 10
- Screenshots: Screenshot #1 (Settings) image required
affiliates-ecwid-light/affiliates-ecwid-light.php Passed 13 tests
"Affiliates Ecwid Light" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
31 characters long description:
Integrates Affiliates and Ecwid
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected543 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 63 | 188 | 543 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 5.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 9 | 42.86% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 3 | 25.00% |
▷ Class constants | 9 | 75.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin