84% call-now

Code Review | Call-Now

WordPress plugin Call-Now scored84%from 54 tests.

About plugin

  • Plugin page: call-now
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.8.2
  • WordPress version: 6.3.1
  • First release: Nov 16, 2018
  • Latest release: Nov 16, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: nabeelee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /638 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Call-Now
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.54 ▼3.32
Dashboard /wp-admin3.33 ▼0.0143.82 ▼12.68
Posts /wp-admin/edit.php3.38 ▲0.0343.40 ▼6.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0588.68 ▼5.37
Media Library /wp-admin/upload.php3.25 ▲0.0334.78 ▼0.03
Call Now /wp-admin/options-general.php?page=call_now3.2030.62

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Call-Now
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.34 ▼1.031.62 ▼0.1739.71 ▲1.05
Dashboard /wp-admin2,229 ▲385.01 ▲0.07101.83 ▲2.2340.47 ▲0.75
Posts /wp-admin/edit.php2,114 ▲252.35 ▲0.3539.58 ▲1.7533.93 ▼2.18
Add New Post /wp-admin/post-new.php1,531 ▲1223.28 ▼0.11667.65 ▼8.1935.88 ▼11.93
Media Library /wp-admin/upload.php1,408 ▲204.53 ▲0.30103.66 ▼4.9745.27 ▼0.17
Call Now /wp-admin/options-general.php?page=call_now1,0682.2550.0529.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=call_now
    • > Notice in wp-content/plugins/call-now/Call Now.php+147
    Trying to access array offset on value of type bool

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: live call, contact, mobile calling, click to call, call now

call-now/Call Now.php 92% from 13 tests

The principal PHP file in "Call-Now" v. 0.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("call-now.php" instead of "Call Now.php")

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
Success! There were no dangerous files found in this plugin204 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15619112
CSS110477
SVG11010
JavaScript1105

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.06
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%
Functions11
▷ Named functions11100.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