10% fonetic-web-callback

Code Review | Fonetic Web Callback

WordPress plugin Fonetic Web Callback scored10%from 54 tests.

About plugin

  • Plugin page: fonetic-web-callback
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Feb 12, 2013
  • Latest release: May 22, 2013
  • Number of updates: 37
  • Update frequency: every 2.7 days
  • Top authors: netiva (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,154 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/fonetic-web-callback/fonetic-web-callback.php+336
    syntax error, unexpected 'new' (T_NEW)

Server metrics [RAM: ▼0.01MB] [CPU: ▼14.04ms] Passed 4 tests

This is a short check of server-side resources used by Fonetic Web Callback
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.69 ▲0.83
Dashboard /wp-admin3.31 ▼0.0445.70 ▼21.57
Posts /wp-admin/edit.php3.36 ▲0.0044.91 ▼4.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.09 ▼30.80
Media Library /wp-admin/upload.php3.23 ▲0.0039.80 ▲2.82

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Fonetic Web Callback
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.011.88 ▲0.1243.73 ▲2.71
Dashboard /wp-admin2,198 ▲215.51 ▼0.1784.34 ▼3.9443.45 ▲2.36
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0336.82 ▼0.0837.20 ▲4.26
Add New Post /wp-admin/post-new.php1,526 ▼020.86 ▼2.20656.92 ▲10.1349.96 ▼7.01
Media Library /wp-admin/upload.php1,400 ▲34.15 ▼0.0297.70 ▼26.7344.67 ▼8.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/fonetic-web-callback/fonetic-web-callback.php on line 336

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
The official readme.txt is a good inspiration

fonetic-web-callback/fonetic-web-callback.php 92% from 13 tests

"Fonetic Web Callback" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,225 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript113336766
PHP14557236
PO File267174201
CSS12312
HTML23010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/fonetic-logo-widget.png9.28KB3.11KB▼ 66.43%
images/webcallback.png10.21KB3.94KB▼ 61.46%
images/fonetic-menu-icon.png0.58KB0.61KB0.00%
jscolor/hv.png2.80KB7.32KB0.00%
jscolor/hs.png2.62KB7.54KB0.00%