90% app-banner

Code Review | App banner

WordPress plugin App banner scored 90% from 54 tests.

About plugin

  • Plugin page: app-banner
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Dec 7, 2017
  • Latest release: Dec 7, 2017
  • Number of updates: 2
  • Update frequency: every 11.5 days
  • Top authors: smartymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 830 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.08ms] Passed 4 tests

An overview of server-side resources used by App banner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.53 ▼2.80
Dashboard /wp-admin3.32 ▲0.0247.77 ▼5.55
Posts /wp-admin/edit.php3.37 ▲0.0244.42 ▼3.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.78 ▼8.64
Media Library /wp-admin/upload.php3.24 ▲0.0135.71 ▼0.66
App Banner /wp-admin/options-general.php?page=app_banner_settings_page3.2129.63

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
app_banner_app_store_url
widget_recent-comments
app_banner_google_play_url
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

App banner: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.15 ▼1.472.11 ▲0.0536.93 ▼8.38
Dashboard /wp-admin2,207 ▲195.83 ▼0.0599.31 ▼12.1337.62 ▼7.31
Posts /wp-admin/edit.php2,096 ▲72.09 ▲0.0934.95 ▼1.1331.20 ▼3.53
Add New Post /wp-admin/post-new.php1,538 ▲2423.56 ▲5.99659.57 ▼33.3451.49 ▼4.91
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0895.76 ▼6.8042.98 ▼2.56
App Banner /wp-admin/options-general.php?page=app_banner_settings_page8772.0524.3131.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • app_banner_google_play_url
    • app_banner_app_store_url

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (The screenshot description corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (The screenshot description corresponds to screenshot-2.(png|jpg|jpeg|gif).), #3 (The screenshot description corresponds to screenshot-3.(png|jpg|jpeg|gif).)
The official readme.txt might help

app-banner/app-banner.php Passed 13 tests

The primary PHP file in "App banner" version 1.0.0 is used by WordPress to initiate all plugin functionality
19 characters long description:
Displays app banner

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected513 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2729333
CSS11919180

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16100.00%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/mask.png1.38KB1.39KB0.00%