84% industrial-and-factorial-addons-for-kingcomposer

Code Review | Industrial and Factorial Addons for KingComposer

WordPress plugin Industrial and Factorial Addons for KingComposer scored 84% from 54 tests.

About plugin

  • Plugin page: industrial-and-fa...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Apr 11, 2019
  • Latest release: Apr 11, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,445 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Industrial and Factorial Addons for KingComposer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.06 ▼4.30
Dashboard /wp-admin3.31 ▲0.0045.05 ▼2.68
Posts /wp-admin/edit.php3.36 ▲0.0049.84 ▲0.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.76 ▼6.99
Media Library /wp-admin/upload.php3.23 ▲0.0034.87 ▲3.74

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Industrial and Factorial Addons for KingComposer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.21 ▼1.541.78 ▼0.1244.84 ▲2.66
Dashboard /wp-admin2,206 ▲184.83 ▼0.24112.37 ▲1.4842.91 ▼0.36
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0542.22 ▼1.2435.92 ▼2.22
Add New Post /wp-admin/post-new.php1,533 ▼923.42 ▲5.06658.03 ▲51.7150.54 ▲2.57
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.02100.23 ▼0.1844.28 ▲0.29

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
  • 32× 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/industrial-and-factorial-addons-for-kingcomposer/addons/about-style-three.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/service-carousel-two.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/services.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/hover-effects/hover-effects.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/testimonials-style-three.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/portfolio.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/service-style-four.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/testimonials-style-two.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/features-style-two.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/industrial-and-factorial-addons-for-kingcomposer/addons/service-box/service-box.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

industrial-and-factorial-addons-for-kingcomposer/industrial-addons.php 92% from 13 tests

"Industrial and Factorial Addons for KingComposer" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("industrial-and-factorial-addons-for-kingcomposer.php" instead of "industrial-addons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected21,463 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
CSS2573616913,340
PHP341,523536,550
JavaScript15209209962
SVG200611

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions67
▷ Named functions67100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/img/beforeafter_icon.png1.36KB0.53KB▼ 61.42%
assets/admin/img/pronobox_icon.png0.42KB0.30KB▼ 28.37%
assets/admin/img/flipbox_icon.png1.67KB1.01KB▼ 39.52%
assets/admin/img/servicebox_icon.png0.61KB0.46KB▼ 24.20%
assets/admin/img/hover_effects_icon.png2.06KB1.21KB▼ 41.43%