84% call-me-spoot

Code Review | Обратный звонок

WordPress plugin Обратный звонок scored84%from 54 tests.

About plugin

  • Plugin page: call-me-spoot
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.3-5.1
  • WordPress version: 6.3.1
  • First release: Aug 13, 2016
  • Latest release: Mar 8, 2019
  • Number of updates: 193
  • Update frequency: every 4.9 days
  • Top authors: spoot1986 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /12,363 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼9.01ms] Passed 4 tests

A check of server-side resources used by Обратный звонок
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.10 ▼2.57
Dashboard /wp-admin3.32 ▼0.0243.43 ▼19.50
Posts /wp-admin/edit.php3.37 ▲0.0248.08 ▼0.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.73 ▼7.75
Media Library /wp-admin/upload.php3.25 ▲0.0231.53 ▼6.23

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

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

Browser metrics Passed 4 tests

Обратный звонок: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲10213.23 ▼1.213.66 ▲1.74100.41 ▲54.01
Dashboard /wp-admin2,206 ▲185.97 ▲1.0898.38 ▼6.2739.23 ▼4.29
Posts /wp-admin/edit.php2,086 ▼62.03 ▼0.0040.05 ▼3.4035.03 ▲1.14
Add New Post /wp-admin/post-new.php1,543 ▲2218.26 ▼4.95620.62 ▲16.7053.21 ▲3.28
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0594.24 ▼14.2441.54 ▼2.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/call-me-spoot/call-me-spoot.php:14

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 93% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Button 01), #2 (Form 01)
The official readme.txt is a good inspiration

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

The principal PHP file in "Обратный звонок" v. 1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected5,805 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS347142,609
JavaScript27552424
PHP1141456
PO File1133245

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions6
▷ Named functions6100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png3.02KB1.68KB▼ 44.37%
screenshot-2.png22.01KB11.34KB▼ 48.50%