78% it-consulting-addons-wpbakery

Code Review | IT Consulting Addons for WPBakery

WordPress plugin IT Consulting Addons for WPBakery scored 78% from 54 tests.

About plugin

  • Plugin page: it-consulting-add...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Mar 12, 2021
  • Latest release: Mar 12, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 355 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.62ms] Passed 4 tests

Server-side resources used by IT Consulting Addons for WPBakery
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.35 ▼2.12
Dashboard /wp-admin3.31 ▲0.0048.52 ▼2.07
Posts /wp-admin/edit.php3.36 ▲0.0045.11 ▼4.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.74 ▼17.52
Media Library /wp-admin/upload.php3.23 ▲0.0036.58 ▲1.38

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

IT Consulting Addons for WPBakery: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.171.76 ▼0.5145.42 ▲0.44
Dashboard /wp-admin2,209 ▲215.84 ▲0.95101.58 ▼2.5841.00 ▼3.24
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0034.74 ▼9.9135.09 ▼0.89
Add New Post /wp-admin/post-new.php1,533 ▲1323.12 ▲0.21650.19 ▲0.7156.76 ▲6.34
Media Library /wp-admin/upload.php1,391 ▲64.15 ▼0.00102.24 ▲1.7045.31 ▲0.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/it-consulting-addons-wpbakery/inc/helper.php
  • 20× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-consulting-addons-wpbakery/shortcodes/service.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-consulting-addons-wpbakery/shortcodes/heading.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-consulting-addons-wpbakery/shortcodes/testimonial-3.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-consulting-addons-wpbakery/shortcodes/service-2.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-consulting-addons-wpbakery/shortcodes/pricing.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-consulting-addons-wpbakery/shortcodes/slider.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-consulting-addons-wpbakery/shortcodes/testimonial.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-consulting-addons-wpbakery/shortcodes/testimonial-2.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-consulting-addons-wpbakery/shortcodes/team.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-consulting-addons-wpbakery/shortcodes/call-to-action-2.php:2

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

it-consulting-addons-wpbakery/it-consulting-addons-wpbakery.php 92% from 13 tests

Analyzing the main PHP file in "IT Consulting Addons for WPBakery" version 1.0.0
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected14,897 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
CSS10841728,516
SVG2133,121
PHP22309712,257
JavaScript91461421,003

PHP code Passed 2 tests

A brief analysis 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.25
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%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 PNG files occupy 1.04MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/effect-1.png33.13KB11.69KB▼ 64.71%
assets/images/quote2.png2.69KB2.07KB▼ 23.20%
assets/images/shape-2.png11.41KB5.00KB▼ 56.14%
assets/images/shape3.png3.02KB1.33KB▼ 56.04%
assets/images/contact-here.png573.84KB168.06KB▼ 70.71%