Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.48MB] [CPU: ▲1.87ms] Passed 4 tests
A check of server-side resources used by WP-Appbox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.90 ▲1.44 | 53.45 ▲14.44 |
Dashboard /wp-admin | 4.86 ▲1.52 | 54.17 ▼7.06 |
Posts /wp-admin/edit.php | 4.91 ▲1.56 | 56.22 ▲8.46 |
Add New Post /wp-admin/post-new.php | 7.34 ▲1.45 | 97.71 ▼7.59 |
Media Library /wp-admin/upload.php | 4.72 ▲1.50 | 48.33 ▲13.68 |
WP-Appbox /wp-admin/options-general.php?page=wp-appbox | 4.70 | 43.70 |
Server storage [IO: ▲1.08MB] [DB: ▲0.01MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/wp-appbox/" and "wp-content/uploads/"
- (new file) wp-content/cache/wp-appbox/.empty
Filesystem: 146 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_appbox |
New WordPress options |
---|
widget_recent-posts |
wpAppbox_dbVersion |
theysaidso_admin_options |
db_upgraded |
wpAppbox_pluginVersion |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP-Appbox
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲22 | 14.28 ▲0.08 | 1.81 ▼0.07 | 41.98 ▲0.83 |
Dashboard /wp-admin | 2,196 ▲22 | 5.54 ▼0.02 | 82.25 ▼8.44 | 37.00 ▼6.80 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.06 | 32.85 ▼4.61 | 35.20 ▼2.03 |
Add New Post /wp-admin/post-new.php | 6,371 ▲4,835 | 28.88 ▲10.60 | 932.42 ▲334.11 | 38.40 ▼30.15 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.20 ▲0.03 | 95.15 ▼10.66 | 42.98 ▼4.66 |
WP-Appbox /wp-admin/options-general.php?page=wp-appbox | 881 | 1.99 | 28.61 | 29.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-appbox/tpl/screenshots-only.php
- > /wp-content/plugins/wp-appbox/wp-appbox.php
- 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-appbox/inc/definitions.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-appbox/admin/settings-buttons.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-appbox/admin/settings-affiliate.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-appbox/tpl/simple.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-appbox/admin/settings-help.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-appbox/admin/settings-storeurls.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-appbox/admin/settings-advanced.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-appbox/inc/getstoreurls.class.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-appbox/admin/settings-info.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-appbox/inc/getstoreurls.class.php:6
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (26 tag instead of maximum 10)
wp-appbox/wp-appbox.php Passed 13 tests
Analyzing the main PHP file in "WP-Appbox" version 4.4.14
118 characters long description:
With WP-Appbox you can add beautiful mobile app badges to your WordPress posts and pages simply by adding a shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin10,614 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 780 | 3,590 | 8,745 |
PO File | 1 | 551 | 1,242 | 841 |
CSS | 2 | 154 | 0 | 716 |
JavaScript | 3 | 50 | 34 | 312 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 75.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 555.00 |
Average method complexity | 5.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 353 | |
▷ Static methods | 80 | 22.66% |
▷ Public methods | 300 | 84.99% |
▷ Protected methods | 43 | 12.18% |
▷ Private methods | 10 | 2.83% |
Functions | 86 | |
▷ Named functions | 70 | 81.40% |
▷ Anonymous functions | 16 | 18.60% |
Constants | 22 | |
▷ Global constants | 22 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
87 compressed PNG files occupy 0.23MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
editor/tinymce/googleplay.btn.png | 1.36KB | 1.47KB | 0.00% |
img/microsoftstore-small@2x.png | 0.71KB | 1.72KB | 0.00% |
img/firefoxaddon-small.png | 0.43KB | 0.82KB | 0.00% |
img/appstore-small.png | 0.30KB | 0.49KB | 0.00% |
img/snapcraft-small@2x.png | 0.57KB | 0.95KB | 0.00% |