10% callmeback

Code Review | CallMeBack

WordPress plugin CallMeBack scored10%from 54 tests.

About plugin

  • Plugin page: callmeback
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 18, 2014
  • Latest release: Jun 18, 2014
  • Number of updates: 26
  • Update frequency: N/A
  • Top authors: duderion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,624 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/callmeback/Google/Utils.php+67
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.73MB] [CPU: ▼50.81ms] Passed 4 tests

Analyzing server-side resources used by CallMeBack
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.25 ▼1.215.90 ▼32.79
Dashboard /wp-admin2.27 ▼1.036.74 ▼40.87
Posts /wp-admin/edit.php2.27 ▼1.088.53 ▼39.03
Add New Post /wp-admin/post-new.php2.27 ▼3.616.34 ▼90.56
Media Library /wp-admin/upload.php2.27 ▼0.967.45 ▼26.14

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 105 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for CallMeBack
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲16813.75 ▼0.605.97 ▲4.1242.34 ▲0.96
Dashboard /wp-admin2,220 ▲325.00 ▼0.11108.19 ▲5.5167.29 ▲24.40
Posts /wp-admin/edit.php2,112 ▲232.10 ▲0.0433.46 ▼8.0133.30 ▼6.06
Add New Post /wp-admin/post-new.php1,688 ▲14622.24 ▲4.02689.08 ▲73.6051.01 ▼12.50
Media Library /wp-admin/upload.php1,405 ▲264.23 ▼0.01101.96 ▼6.9865.82 ▲23.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/callmeback/Google/Utils.php+67
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 114× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'Google/Auth/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/callmeback/Google/Auth/Simple.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/callmeback/Google/Service/DoubleClickBidManager.php:32
    • > PHP Fatal error
      require_once(): Failed opening required 'Google/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/callmeback/Google/IO/Exception.php on line 18
    • > PHP Fatal error
      require_once(): Failed opening required 'Google/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/callmeback/Google/Cache/Exception.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/callmeback/Google/Service/Dns.php:32
    • > PHP Warning
      require_once(Google/Client.php): failed to open stream: No such file or directory in wp-content/plugins/callmeback/Google/Http/Batch.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/callmeback/Google/Service/Fusiontables.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/callmeback/Google/Service/Content.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/callmeback/Google/Service/PlusDomains.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/callmeback/Google/Service/Genomics.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === callmeback === )
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

callmeback/callmeback.php Passed 13 tests

The entry point to "CallMeBack" version 0.3 is a PHP file that has certain tags in its header comment area
60 characters long description:
A Client Callback Plugin, connected to your Google Calendar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin111,827 lines of code in 100 files:
LanguageFilesBlank linesComment linesLines of code
PHP9618,61222,836110,302
JavaScript1160391,183
CSS3181342

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity1.22
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity1.03
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2,058
▷ Abstract classes50.24%
▷ Concrete classes2,05399.76%
▷ Final classes00.00%
Methods16,631
▷ Static methods120.07%
▷ Public methods16,59399.77%
▷ Protected methods110.07%
▷ Private methods270.16%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants170
▷ Global constants00.00%
▷ Class constants170100.00%
▷ Public constants170100.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
img/phone-icon.png4.54KB0.75KB▼ 83.51%