10% novocall-callback-widget

Code Review | Novocall - Callback Widget

WordPress plugin Novocall - Callback Widget scored 10% from 54 tests.

About plugin

  • Plugin page: novocall-callback...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 8, 2018
  • Latest release: Apr 8, 2019
  • Number of updates: 8
  • Update frequency: every 23.1 days
  • Top authors: novocall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,745 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
  • The plugin cannot be installed
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method NovocallPlugin::activate() should not be called statically

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.64ms] Passed 4 tests

Analyzing server-side resources used by Novocall - Callback Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.80 ▼4.79
Dashboard /wp-admin3.33 ▲0.0245.19 ▼6.02
Posts /wp-admin/edit.php3.38 ▲0.0250.08 ▲4.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.60 ▼12.76
Media Library /wp-admin/upload.php3.25 ▲0.0236.81 ▲1.02
Novocall /wp-admin/options-general.php?page=novocall-widget3.2232.13

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Novocall - Callback Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.76 ▲0.141.62 ▼0.1141.95 ▼9.16
Dashboard /wp-admin2,210 ▲195.81 ▲0.9297.98 ▼6.7638.65 ▼1.79
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0436.82 ▼0.9334.52 ▼0.93
Add New Post /wp-admin/post-new.php1,536 ▲223.23 ▲0.26596.02 ▼37.3360.50 ▼0.02
Media Library /wp-admin/upload.php1,386 ▼54.12 ▼0.1899.59 ▼9.0040.67 ▼2.77
Novocall /wp-admin/options-general.php?page=novocall-widget8192.0223.5526.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method NovocallPlugin::deactivate() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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 everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/novocall-callback-widget/display/novocall-widget-admin-page.php:18

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 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
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in novocall-callback-widget/assets to your readme.txt
  • Tags: Please delete some tags, you are using 27 tag instead of maximum 10
The official readme.txt is a good inspiration

novocall-callback-widget/novocall-widget.php 92% from 13 tests

The principal PHP file in "Novocall - Callback Widget" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("novocall-callback-widget.php" instead of "novocall-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin99 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3303499

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin