78% wp-appbox

Code Review | WP-Appbox

WordPress plugin WP-Appbox scored78%from 54 tests.

About plugin

  • Plugin page: wp-appbox
  • Plugin version: 4.4.14
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Dec 22, 2012
  • Latest release: Oct 7, 2023
  • Number of updates: 1
  • Update frequency: every 365.0 days

Code review

54 tests

User reviews

62 reviews

Install metrics

4,000+ active /381,342 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.90 ▲1.4453.45 ▲14.44
Dashboard /wp-admin4.86 ▲1.5254.17 ▼7.06
Posts /wp-admin/edit.php4.91 ▲1.5656.22 ▲8.46
Add New Post /wp-admin/post-new.php7.34 ▲1.4597.71 ▼7.59
Media Library /wp-admin/upload.php4.72 ▲1.5048.33 ▲13.68
WP-Appbox /wp-admin/options-general.php?page=wp-appbox4.7043.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.28 ▲0.081.81 ▼0.0741.98 ▲0.83
Dashboard /wp-admin2,196 ▲225.54 ▼0.0282.25 ▼8.4437.00 ▼6.80
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0632.85 ▼4.6135.20 ▼2.03
Add New Post /wp-admin/post-new.php6,371 ▲4,83528.88 ▲10.60932.42 ▲334.1138.40 ▼30.15
Media Library /wp-admin/upload.php1,404 ▲74.20 ▲0.0395.15 ▼10.6642.98 ▼4.66
WP-Appbox /wp-admin/options-general.php?page=wp-appbox8811.9928.6129.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

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)
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP287803,5908,745
PO File15511,242841
CSS21540716
JavaScript35034312

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 code0.47
Average class complexity75.25
▷ Minimum class complexity1.00
▷ Maximum class complexity555.00
Average method complexity5.23
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes18
▷ Abstract classes211.11%
▷ Concrete classes1688.89%
▷ Final classes00.00%
Methods353
▷ Static methods8022.66%
▷ Public methods30084.99%
▷ Protected methods4312.18%
▷ Private methods102.83%
Functions86
▷ Named functions7081.40%
▷ Anonymous functions1618.60%
Constants22
▷ Global constants22100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
editor/tinymce/googleplay.btn.png1.36KB1.47KB0.00%
img/microsoftstore-small@2x.png0.71KB1.72KB0.00%
img/firefoxaddon-small.png0.43KB0.82KB0.00%
img/appstore-small.png0.30KB0.49KB0.00%
img/snapcraft-small@2x.png0.57KB0.95KB0.00%