89% premium-addons-for-kingcomposer

Code Review | Premium Addons for KingComposer

WordPress plugin Premium Addons for KingComposer scored89%from 54 tests.

About plugin

  • Plugin page: premium-addons-fo...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2
  • WordPress version: 6.3.1
  • First release: Aug 7, 2019
  • Latest release: Aug 8, 2019
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: octagonwebstudio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.24ms] Passed 4 tests

Server-side resources used by Premium Addons for KingComposer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.69 ▼6.44
Dashboard /wp-admin3.32 ▲0.0244.87 ▼10.90
Posts /wp-admin/edit.php3.38 ▲0.0246.44 ▲0.72
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.83 ▲2.42
Media Library /wp-admin/upload.php3.25 ▲0.0236.62 ▼0.35

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

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

Browser metrics Passed 4 tests

Premium Addons for KingComposer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9614.74 ▲0.161.88 ▲0.0539.03 ▼3.91
Dashboard /wp-admin2,209 ▲245.80 ▼0.0996.32 ▼20.2339.88 ▼7.54
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0138.70 ▲2.7536.19 ▲0.60
Add New Post /wp-admin/post-new.php1,540 ▲623.11 ▲0.00602.71 ▼65.9745.60 ▼9.82
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0097.19 ▼17.4243.07 ▼5.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
4 plugin tags: toolkit, shortcodes, kingcomposer, framework

premium-addons-for-kingcomposer/octagon-kc-elements.php 85% from 13 tests

"Premium Addons for KingComposer" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("premium-addons-for-kingcomposer.php" instead of "octagon-kc-elements.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 plugin20,072 lines of code in 156 files:
LanguageFilesBlank linesComment linesLines of code
PHP1004,0072,16015,695
CSS315963422,717
JavaScript176834471,251
SVG530232
Markdown3710177

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity17.23
▷ Minimum class complexity1.00
▷ Maximum class complexity210.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes48
▷ Abstract classes00.00%
▷ Concrete classes48100.00%
▷ Final classes00.00%
Methods240
▷ Static methods52.08%
▷ Public methods19380.42%
▷ Protected methods00.00%
▷ Private methods4719.58%
Functions54
▷ Named functions5398.15%
▷ Anonymous functions11.85%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
64 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/assets/image/kc-icon-timeline.png1.15KB0.65KB▼ 43.02%
core/assets/image/grid-creator/select-arrow.png0.15KB0.14KB▼ 3.27%
assets/image/kc-icon-testimonial-slider.png1.65KB1.07KB▼ 35.19%
assets/image/kc-icon-content-type-slider.png1.15KB0.74KB▼ 35.93%
core/assets/image/kc-icon-advance-separator.png0.60KB0.44KB▼ 27.15%