83% wp-call-me

Code Review | WP Call Me

WordPress plugin WP Call Me scored83%from 54 tests.

About plugin

  • Plugin page: wp-call-me
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4.1
  • WordPress version: 6.3.1
  • First release: May 29, 2014
  • Latest release: Oct 13, 2016
  • Number of updates: 17
  • Update frequency: every 51.1 days
  • Top authors: TaylorHawkes (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /8,334 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.05ms] Passed 4 tests

An overview of server-side resources used by WP Call Me
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.40 ▼1.43
Dashboard /wp-admin3.35 ▲0.0145.03 ▼13.29
Posts /wp-admin/edit.php3.40 ▲0.0543.69 ▼7.31
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.76 ▼14.15
Media Library /wp-admin/upload.php3.28 ▲0.0535.85 ▲4.99

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Call Me
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.28 ▼1.101.54 ▼0.0640.69 ▲0.55
Dashboard /wp-admin2,229 ▲384.91 ▲0.04100.35 ▲0.7039.32 ▼5.72
Posts /wp-admin/edit.php2,109 ▲202.21 ▲0.2434.94 ▼2.3432.52 ▼3.36
Add New Post /wp-admin/post-new.php1,534 ▲1517.61 ▼5.53670.26 ▲17.7455.45 ▼20.00
Media Library /wp-admin/upload.php1,402 ▲144.41 ▲0.24101.60 ▼5.5643.68 ▼4.65

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-call-me/wp-call-me.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

wp-call-me/wp-call-me.php 92% from 13 tests

The principal PHP file in "WP Call Me" v. 1.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 382 characters long)

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
Good job! No executable or dangerous file extensions detected3,179 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71131772,090
CSS47118771
PHP19543318

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions13
▷ Named functions13100.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
4 PNG files occupy 0.27MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png20.56KB6.06KB▼ 70.51%
assets/screenshot-3.png178.51KB59.30KB▼ 66.78%
assets/screenshot-1.png17.17KB5.09KB▼ 70.37%
images/flags16.png61.80KB19.90KB▼ 67.79%