84% ios-smart-app-banner-for-safari

Code Review | iOS Smart App Banner For Safari

WordPress plugin iOS Smart App Banner For Safari scored84%from 54 tests.

About plugin

  • Plugin page: ios-smart-app-ban...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2016
  • Latest release: Jan 22, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: carpemobile (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,426 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: ▼8.19ms] Passed 4 tests

An overview of server-side resources used by iOS Smart App Banner For Safari
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.37 ▲1.09
Dashboard /wp-admin3.33 ▼0.0156.48 ▼10.31
Posts /wp-admin/edit.php3.38 ▲0.0346.06 ▼3.68
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.79 ▼15.20
Media Library /wp-admin/upload.php3.25 ▲0.0334.97 ▼3.55

Server storage [IO: ▲0.01MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for iOS Smart App Banner For Safari
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4414.72 ▲0.772.18 ▼0.1543.30 ▲0.20
Dashboard /wp-admin2,195 ▲215.59 ▼0.0784.20 ▼14.5041.14 ▼7.01
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0137.44 ▼0.9535.67 ▼0.19
Add New Post /wp-admin/post-new.php6,263 ▲4,73718.71 ▼4.53949.35 ▲294.1465.35 ▲20.98
Media Library /wp-admin/upload.php1,403 ▲94.16 ▼0.0696.76 ▼0.5244.36 ▼0.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ios-smart-app-banner-for-safari/ios-smart-app-banner-for-safari.php

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)
No browser issues were found

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ios-smart-app-banner-for-safari === )
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can look at the official readme.txt

ios-smart-app-banner-for-safari/ios-smart-app-banner-for-safari.php Passed 13 tests

The principal PHP file in "iOS Smart App Banner For Safari" v. 1.0 is loaded by WordPress automatically on each request
99 characters long description:
Plugin for adding an iOS Smart App Banner to the top of selected pages for iOS mobile safari users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15873133

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin