Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.17ms] Passed 4 tests
This is a short check of server-side resources used by iThemes Exchange - Custom Loop Add-on
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.50 ▼4.71 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.33 ▼2.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.82 ▼2.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 95.75 ▲5.00 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.53 ▲0.42 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for iThemes Exchange - Custom Loop Add-on
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.47 ▲0.24 | 1.76 ▲0.03 | 41.26 ▲1.61 |
Dashboard /wp-admin | 2,209 ▲18 | 5.87 ▲0.97 | 108.70 ▲2.74 | 39.76 ▼5.05 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.05 ▲0.06 | 39.51 ▼1.22 | 36.08 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,533 ▼8 | 22.99 ▼0.32 | 610.11 ▲20.85 | 54.41 ▼3.00 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.23 ▲0.07 | 96.66 ▼10.89 | 43.92 ▼0.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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)
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/exchange-addon-custom-loop/init.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/exchange-addon-custom-loop/lib/metabox/page-meta-box.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/exchange-addon-custom-loop/lib/metabox/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/exchange-addon-custom-loop/exchange-addon-custom-loop.php:39
- > 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
10 plugin tags: addon, exchange addon, store, add-on, loop...
exchange-addon-custom-loop/exchange-addon-custom-loop.php Passed 13 tests
The primary PHP file in "iThemes Exchange - Custom Loop Add-on" version 1.0.14 is used by WordPress to initiate all plugin functionality
88 characters long description:
iThemes Exchange custom loop offers more control over the loop that builts a store page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin5,483 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 700 | 1,126 | 2,360 |
JavaScript | 8 | 336 | 393 | 2,289 |
CSS | 6 | 73 | 36 | 611 |
PO File | 1 | 76 | 149 | 205 |
YAML | 1 | 5 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 64.86 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 153 | |
▷ Static methods | 34 | 22.22% |
▷ Public methods | 151 | 98.69% |
▷ Protected methods | 2 | 1.31% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/metabox/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
lib/metabox/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/metabox/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/metabox/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
lib/metabox/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |