83% we-will-call-you

Code Review | We Will Call You

WordPress plugin We Will Call You scored83%from 54 tests.

About plugin

  • Plugin page: we-will-call-you
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Nov 17, 2015
  • Latest release: Nov 17, 2015
  • Number of updates: 9
  • Update frequency: every 2.1 days
  • Top authors: victorjchamorro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,124 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: ▲0.04ms] Passed 4 tests

Server-side resources used by We Will Call You
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0644.56 ▲1.72
Dashboard /wp-admin3.36 ▲0.0155.80 ▼8.08
Posts /wp-admin/edit.php3.47 ▲0.1149.27 ▲3.76
Add New Post /wp-admin/post-new.php5.94 ▲0.0598.21 ▲3.02
Media Library /wp-admin/upload.php3.28 ▲0.0542.31 ▲3.49
We'll Call You /wp-admin/options-general.php?page=wewillcallyou3.2529.51

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for We Will Call You
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17713.74 ▼0.8711.37 ▲9.6158.91 ▲17.69
Dashboard /wp-admin2,196 ▲285.62 ▲0.0394.28 ▼17.4843.32 ▼0.22
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0336.94 ▼2.5536.82 ▲0.02
Add New Post /wp-admin/post-new.php1,533 ▼123.35 ▲0.25669.37 ▼37.4862.64 ▲9.48
Media Library /wp-admin/upload.php1,401 ▲14.09 ▼0.14103.61 ▼10.0349.47 ▲1.53
We'll Call You /wp-admin/options-general.php?page=wewillcallyou8502.0424.3725.49

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/we-will-call-you/we-will-call-you.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === we-will-call-you === )
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

we-will-call-you/we-will-call-you.php 92% from 13 tests

This is the main PHP file of "We Will Call You" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin308 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23014122
PO File23838112
JavaScript1251974

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected