10% cdyne-call-me

Code Review | CDYNE Call Me Widget

WordPress plugin CDYNE Call Me Widget scored10%from 54 tests.

About plugin

  • Plugin page: cdyne-call-me
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.4-3.3.1
  • WordPress version: 6.3.1
  • First release: Apr 11, 2012
  • Latest release: Apr 13, 2012
  • Number of updates: 26
  • Update frequency: every 0.1 days
  • Top authors: HowdyMedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,085 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/cdyne-call-me/cdyne_call_me.php+228
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼64.80ms] Passed 4 tests

Analyzing server-side resources used by CDYNE Call Me Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.56 ▼40.99
Dashboard /wp-admin2.05 ▼1.305.67 ▼78.28
Posts /wp-admin/edit.php2.05 ▼1.314.98 ▼45.29
Add New Post /wp-admin/post-new.php2.05 ▼3.846.21 ▼94.64
Media Library /wp-admin/upload.php2.05 ▼1.186.90 ▼31.11

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for CDYNE Call Me Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.21 ▼1.031.90 ▲0.1648.18 ▲1.96
Dashboard /wp-admin2,221 ▲184.86 ▼0.01101.48 ▼10.2135.88 ▼5.71
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0139.03 ▲1.7335.24 ▲0.54
Add New Post /wp-admin/post-new.php1,544 ▼122.03 ▼1.14611.45 ▼50.7945.13 ▼48.13
Media Library /wp-admin/upload.php1,397 ▼04.25 ▲0.01106.79 ▼0.1546.27 ▼2.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/cdyne-call-me/cdyne_call_me.php+228
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_cdynecallme
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === cdyne-call-me === )
  • Tags: You are using too many tags: 23 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget Configuration), #2 (Sidebar Widget)
You can take inspiration from this readme.txt

cdyne-call-me/cdyne_call_me.php 92% from 13 tests

The main PHP script in "CDYNE Call Me Widget" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cdyne-call-me.php" instead of "cdyne_call_me.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected195 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11223195

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png34.16KB19.07KB▼ 44.17%
screenshot-2.png17.65KB9.82KB▼ 44.36%