79% service-boxes-widgets-text-icon

Code Review | Service Boxes Widgets Text Icon

WordPress plugin Service Boxes Widgets Text Icon scored79%from 54 tests.

About plugin

  • Plugin page: service-boxes-wid...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.1-1.0.1
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Jun 29, 2015
  • Number of updates: 17
  • Update frequency: every 4.9 days
  • Top authors: mahabub hasan (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /11,037 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼1.71MB] [CPU: ▼45.04ms] Passed 4 tests

Analyzing server-side resources used by Service Boxes Widgets Text Icon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.189.54 ▼31.34
Dashboard /wp-admin2.29 ▼1.0110.49 ▼34.71
Posts /wp-admin/edit.php2.29 ▼1.0612.27 ▼35.65
Add New Post /wp-admin/post-new.php2.29 ▼3.599.53 ▼78.45
Media Library /wp-admin/upload.php2.29 ▼0.9411.14 ▼28.01

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_service-boxes-widget-text-icon
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Service Boxes Widgets Text Icon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.092.08 ▲0.3541.57 ▲0.37
Dashboard /wp-admin2,209 ▲205.91 ▲0.96107.30 ▲2.1641.19 ▼7.59
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0439.70 ▼1.1736.66 ▲1.21
Add New Post /wp-admin/post-new.php1,533 ▼023.45 ▲0.10667.10 ▼11.1554.84 ▲3.21
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.03106.85 ▼2.0248.51 ▲4.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in Service_Boxes_Widget_Text_Icon is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_service-boxes-widget-text-icon
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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 94% 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
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

service-boxes-widgets-text-icon/service-boxs-widgets-text-icon.php 77% from 13 tests

"Service Boxes Widgets Text Icon" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 239 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("service-boxes-widgets-text-icon.php" instead of "service-boxs-widgets-text-icon.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
No dangerous file extensions were detected753 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36699723
PO File18830

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner-772x250.png85.29KB27.36KB▼ 67.92%
Screenshot-1.png69.60KB23.55KB▼ 66.16%