83% wp-smartappbanner

Code Review | WP-SmartAppBanner

WordPress plugin WP-SmartAppBanner scored83%from 54 tests.

About plugin

  • Plugin page: wp-smartappbanner
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9
  • WordPress version: 6.3.1
  • First release: Aug 23, 2012
  • Latest release: Apr 17, 2014
  • Number of updates: 10
  • Update frequency: every 60.3 days
  • Top authors: lovememore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,229 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.99ms] Passed 4 tests

An overview of server-side resources used by WP-SmartAppBanner
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.33 ▲3.85
Dashboard /wp-admin3.31 ▼0.0343.56 ▼17.79
Posts /wp-admin/edit.php3.36 ▲0.0144.75 ▲1.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0178.40 ▼18.87
Media Library /wp-admin/upload.php3.24 ▲0.0134.99 ▼0.87
Set SmartAppBanner /wp-admin/options-general.php?page=set_ios_app3.2028.96

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
set_ios_app_value
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP-SmartAppBanner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5913.19 ▼1.211.67 ▼0.1039.60 ▼3.79
Dashboard /wp-admin2,210 ▲194.90 ▼0.9598.62 ▼1.4235.34 ▲0.48
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0638.83 ▼2.4935.65 ▼2.43
Add New Post /wp-admin/post-new.php1,536 ▲823.36 ▲5.16662.79 ▲35.0754.72 ▲2.06
Media Library /wp-admin/upload.php1,395 ▲74.21 ▼0.02111.07 ▲12.7347.39 ▲5.30
Set SmartAppBanner /wp-admin/options-general.php?page=set_ios_app7682.0322.7923.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • set_ios_app_value
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/wp-smartappbanner/set-smartappbanner.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (Here's it in action) image missing
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-smartappbanner === )
You can look at the official readme.txt

wp-smartappbanner/set-smartappbanner.php 92% from 13 tests

The main PHP file in "WP-SmartAppBanner" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-smartappbanner.php" instead of "set-smartappbanner.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10823

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.03MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png31.73KB31.12KB▼ 1.94%