84% mobile-call-now

Code Review | Mobile Call Now

WordPress plugin Mobile Call Now scored84%from 54 tests.

About plugin

  • Plugin page: mobile-call-now
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Jan 31, 2017
  • Latest release: Feb 4, 2017
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,293 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Mobile Call Now
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.48 ▼0.61
Dashboard /wp-admin3.32 ▼0.0344.81 ▼14.06
Posts /wp-admin/edit.php3.37 ▲0.0148.18 ▲1.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0379.73 ▼21.20
Media Library /wp-admin/upload.php3.24 ▲0.0139.34 ▲7.90

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Mobile Call Now: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲7013.83 ▼0.461.90 ▲0.0740.92 ▲1.46
Dashboard /wp-admin2,242 ▲546.10 ▲1.05106.93 ▼8.0193.08 ▲47.38
Posts /wp-admin/edit.php2,133 ▲442.29 ▲0.2838.51 ▲2.8035.25 ▲2.98
Add New Post /wp-admin/post-new.php1,702 ▲18822.84 ▲5.32689.93 ▲4.2635.04 ▼14.14
Media Library /wp-admin/upload.php1,424 ▲334.42 ▲0.15107.60 ▲1.8443.78 ▼0.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • 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
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-call-now/mobile-call-now.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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 require attention:
  • Screenshots: Screenshot #1 (Admin Panel view of submitted form data.) image missing
Please take inspiration from this readme.txt

mobile-call-now/mobile-call-now.php Passed 13 tests

"Mobile Call Now" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
123 characters long description:
Mobile Call Now plugin places a Call Now button to the bottom of the screen which is only visible for your mobile visitors.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin198 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13034108
CSS218087
JavaScript1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions8
▷ Named functions8100.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
14 PNG files occupy 0.35MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/cell-27044__340.png46.72KB19.01KB▼ 59.32%
images/phone7.png8.93KB6.35KB▼ 28.89%
images/phone4.png51.13KB14.68KB▼ 71.29%
images/phone2.png10.30KB5.37KB▼ 47.82%
images/phone6.png24.77KB11.65KB▼ 52.95%