77% textusbiz-widget

Code Review | TextUs.Biz Widget

WordPress plugin TextUs.Biz Widget scored77%from 54 tests.

About plugin

  • Plugin page: textusbiz-widget
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 27, 2013
  • Latest release: Mar 18, 2015
  • Number of updates: 12
  • Update frequency: every 45.9 days
  • Top authors: erichsparks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,060 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by TextUs.Biz Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0627.07 ▼23.17
Dashboard /wp-admin3.33 ▼0.0248.42 ▼19.93
Posts /wp-admin/edit.php3.38 ▲0.0249.77 ▼3.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.32 ▼6.77
Media Library /wp-admin/upload.php3.25 ▲0.0242.15 ▲6.38
TextUs.Biz Widget /wp-admin/options-general.php?page=textus_widget3.1930.26

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by TextUs.Biz Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲3714.27 ▼0.112.51 ▲0.2236.58 ▼1.53
Dashboard /wp-admin2,193 ▲195.57 ▼0.1188.50 ▼11.4238.72 ▼5.22
Posts /wp-admin/edit.php2,101 ▲12.16 ▲0.0133.83 ▼0.6335.57 ▼1.52
Add New Post /wp-admin/post-new.php1,529 ▼817.60 ▼5.50683.50 ▲1.8055.56 ▲0.71
Media Library /wp-admin/upload.php1,404 ▲44.21 ▼0.0396.04 ▼3.6142.40 ▼3.68
TextUs.Biz Widget /wp-admin/options-general.php?page=textus_widget8452.0527.1730.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=textus_widget
    • > Notice in wp-content/plugins/textusbiz-widget/textusbiz.php+92
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/textusbiz-widget/textusbiz.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === textusbiz-widget === )
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

textusbiz-widget/textusbiz.php 85% from 13 tests

"TextUs.Biz Widget" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please improve your description making it at least 10 characters long (currently 0 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("textusbiz-widget.php" instead of "textusbiz.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin67 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1242667

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin