78% call-me-now

Code Review | Wordpress Call me Now

WordPress plugin Wordpress Call me Now scored78%from 54 tests.

About plugin

  • Plugin page: call-me-now
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.8
  • WordPress version: 6.3.1
  • First release: Jun 5, 2014
  • Latest release: Jun 26, 2017
  • Number of updates: 19
  • Update frequency: every 150.0 days
  • Top authors: Tussendoor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,774 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.09ms] 75% from 4 tests

An overview of server-side resources used by Wordpress Call me Now
Please take the time to fix the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 2,026.97ms on /wp-admin/admin.php?page=call_me_now_about)
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.69 ▲0.18
Dashboard /wp-admin3.35 ▲0.0446.61 ▲0.06
Posts /wp-admin/edit.php3.40 ▲0.0447.88 ▲2.18
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.61 ▼2.07
Media Library /wp-admin/upload.php3.27 ▲0.0441.59 ▲5.29
Settings /wp-admin/admin.php?page=call_me_now_settings3.232,181.29
Information /wp-admin/admin.php?page=call_me_now_about3.232,026.97

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Wordpress Call me Now: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.58 ▼0.801.82 ▲0.0539.95 ▼11.76
Dashboard /wp-admin2,237 ▲465.99 ▲0.09101.39 ▼4.5777.52 ▲38.13
Posts /wp-admin/edit.php2,120 ▲312.01 ▲0.0135.36 ▲0.1732.31 ▼2.10
Add New Post /wp-admin/post-new.php1,691 ▲15822.46 ▼0.76769.09 ▲143.5759.32 ▲0.74
Media Library /wp-admin/upload.php1,410 ▲194.19 ▼0.1298.44 ▲1.6075.59 ▲34.23
Settings /wp-admin/admin.php?page=call_me_now_settings8432.0225.4727.81
Information /wp-admin/admin.php?page=call_me_now_about8702.0323.7128.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_call_me_now_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=call_me_now_about
    • > Warning in wp-content/plugins/call-me-now/call-me-now-frame.php+4
    file_get_contents(http://crm.tussendoor.nl/view-iframe/1/wordpress-plugin.html?code=1): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

SRP 50% from 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
Almost there! Just fix the following items
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/call-me-now/views/frontend/call-me-now.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/call-me-now/views/admin/settings.php:3
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/call-me-now/views/frontend/call-me-now.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/call-me-now/call-me-now.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/call-me-now/views/frontend/call-me-now.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/call-me-now/views/admin/about.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/call-me-now/call-me-now-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/call-me-now/views/admin/widget-settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


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:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The main file in "Wordpress Call me Now" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
105 characters long description:
Zorg voor supersnelle call me now activiteiten op je website via de Call me now widget van Verbonden B.V.

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
There were no executable files found in this plugin352 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.50
▷ Minimum class complexity8.00
▷ Maximum class complexity13.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
resources/call-me-now_white.png1.14KB0.46KB▼ 59.55%