Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/apester-interactive-content/inc/events.php+62
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.73MB] [CPU: ▼28.65ms] Passed 4 tests
Server-side resources used by Apester Interactive Content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.11 ▼3.65 |
Dashboard /wp-admin | 3.21 ▼0.09 | 26.79 ▼20.58 |
Posts /wp-admin/edit.php | 3.21 ▼0.14 | 25.44 ▼20.87 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.68 | 24.80 ▼67.63 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 26.35 ▼5.50 |
Apester /wp-admin/options-general.php?page=qmerce-settings-admin | 3.21 | 24.09 |
Server storage [IO: ▲3.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 9 new options
New WordPress options |
---|
qmerce-settings-admin |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
apester-tokens-sent |
widget_recent-posts |
can_compress_scripts |
tokens-publish-option-updated |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Apester Interactive Content
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲139 | 14.27 ▼0.13 | 12.10 ▲10.30 | 42.07 ▼3.87 |
Dashboard /wp-admin | 2,230 ▲45 | 5.31 ▼0.56 | 105.69 ▲1.18 | 36.76 ▼7.00 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.50 ▲0.50 | 36.73 ▼2.66 | 32.65 ▼6.13 |
Add New Post /wp-admin/post-new.php | 1,533 ▲16 | 23.11 ▲5.45 | 623.88 ▼43.06 | 51.08 ▲0.15 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.55 ▲0.36 | 105.05 ▲6.93 | 39.48 ▼4.41 |
Apester /wp-admin/options-general.php?page=qmerce-settings-admin | 942 | 2.45 | 30.16 | 31.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/apester-interactive-content/inc/qmerce-settings.class.php+323
Undefined index: playlist_enabled_tokens
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-posts
- can_compress_scripts
- apester-tokens-sent
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- tokens-publish-option-updated
- qmerce-settings-admin
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=qmerce-settings-admin
- > Notice in wp-content/plugins/apester-interactive-content/inc/qmerce-settings.class.php+323
Undefined index: playlist_enabled_tokens
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qmerce-settings-admin
- > Notice in wp-content/plugins/apester-interactive-content/views/settings.tpl.php+292
Undefined index: auth_token
- > GET request to /wp-admin/options-general.php?page=qmerce-settings-admin
- > Notice in wp-content/plugins/apester-interactive-content/inc/tinymce.php+43
Undefined index: apester_tags
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qmerce-settings-admin
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apester-interactive-content/inc/qmerce-admin-box.class.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/apester-interactive-content/qmerce.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apester-interactive-content/views/settings.tpl.php:5
- > PHP Fatal error
Uncaught Error: Class 'QmerceTagComposer' not found in wp-content/plugins/apester-interactive-content/inc/qmerce-shortcodes.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apester-interactive-content/inc/qmerce-settings.class.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/apester-interactive-content/inc/qmerce-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #6, #7, #8, #9 in apester-interactive-content/assets to your readme.txt
- Tags: You are using too many tags: 13 tag instead of maximum 10
apester-interactive-content/qmerce.php 77% from 13 tests
The entry point to "Apester Interactive Content" version 2.1.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("apester-interactive-content.php" instead of "qmerce.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 215 characters long)
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
Good job! No executable or dangerous file extensions detected8,234 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 10 | 0 | 5,535 |
JavaScript | 7 | 289 | 426 | 1,396 |
PHP | 11 | 309 | 336 | 1,273 |
SVG | 2 | 3 | 0 | 30 |
PHP code Passed 2 tests
A short 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.33 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 64.91% |
▷ Protected methods | 6 | 10.53% |
▷ Private methods | 14 | 24.56% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 17 | |
▷ Global constants | 15 | 88.24% |
▷ Class constants | 2 | 11.76% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.41MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/banana@2x.png | 84.36KB | 21.53KB | ▼ 74.48% |
public/img/embedding@2x.png | 248.05KB | 59.48KB | ▼ 76.02% |
public/img/playlist_position/bottom@2x.png | 4.86KB | 1.16KB | ▼ 76.05% |
public/img/playlist_position/top@2x.png | 4.82KB | 1.17KB | ▼ 75.81% |
public/img/playlist_position/middle@2x.png | 4.82KB | 1.17KB | ▼ 75.77% |