77% ovic-addon-toolkit

Code Review | Ovic Addon Toolkit

WordPress plugin Ovic Addon Toolkit scored77%from 54 tests.

About plugin

  • Plugin page: ovic-addon-toolkit
  • Plugin version: 2.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 6, 2019
  • Latest release: Jun 8, 2023
  • Number of updates: 489
  • Update frequency: every 3.0 days
  • Top authors: hoangkhanh92 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

4,000+ active /66,532 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲2.21MB] [CPU: ▲19.47ms] 75% from 4 tests

Analyzing server-side resources used by Ovic Addon Toolkit
The following require your attention
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,640.28ms on /wp-admin/admin.php?page=ovic_addon-dashboard)
PageMemory (MB)CPU Time (ms)
Home /5.28 ▲1.8159.73 ▲17.93
Dashboard /wp-admin5.67 ▲2.3772.64 ▲23.72
Posts /wp-admin/edit.php5.73 ▲2.3669.27 ▲21.38
Add New Post /wp-admin/post-new.php8.37 ▲2.48117.51 ▲14.86
Media Library /wp-admin/upload.php5.54 ▲2.3057.59 ▲24.09
Footer Builder /wp-admin/edit.php?post_type=ovic_footer5.6457.11
Mega Menu /wp-admin/edit.php?post_type=ovic_menu5.6452.67
Ovic Panel /wp-admin/admin.php?page=ovic_addon-dashboard6.381,640.28

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 296 new files
Database: no new tables, 8 new options
New WordPress options
widget_widget_ovic_iconbox
widget_recent-comments
widget_ovic_nav_menu
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ovic Addon Toolkit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲22513.57 ▼0.6110.61 ▲8.7645.48 ▲2.98
Dashboard /wp-admin2,235 ▲585.61 ▼0.0789.55 ▲0.2066.65 ▲22.02
Posts /wp-admin/edit.php2,139 ▲392.01 ▲0.0235.07 ▼1.4635.18 ▼0.30
Add New Post /wp-admin/post-new.php1,564 ▲3823.50 ▲0.16674.13 ▼7.7963.99 ▼23.83
Media Library /wp-admin/upload.php1,433 ▲334.13 ▲0.0699.68 ▼17.6774.38 ▲25.70
Footer Builder /wp-admin/edit.php?post_type=ovic_footer1,1001.9536.1429.20
Mega Menu /wp-admin/edit.php?post_type=ovic_menu1,1001.9734.8130.04
Ovic Panel /wp-admin/admin.php?page=ovic_addon-dashboard2,2613.3951.3881.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • widget_ovic_nav_menu
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_widget_ovic_iconbox

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 everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please take a closer look at the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ovic-addon-toolkit/includes/widgets/widget-custommenu.php
    • > /wp-content/plugins/ovic-addon-toolkit/templates/elementor/column.php
    • > /wp-content/plugins/ovic-addon-toolkit/templates/elementor/section.php
  • 33× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_Vcs_Api' not found in wp-content/plugins/ovic-addon-toolkit/includes/admin/plugin-update-checker/Puc/v4p11/Vcs/GitLabApi.php:5
    • > PHP Warning
      include(OVIC_PLUGIN_DIRaffiliates.php): failed to open stream: No such file or directory in wp-content/plugins/ovic-addon-toolkit/includes/admin/dashboard/envato.php on line 29
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_UpdateChecker' not found in wp-content/plugins/ovic-addon-toolkit/includes/admin/plugin-update-checker/Puc/v4p11/Plugin/UpdateChecker.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_DebugBar_Extension' not found in wp-content/plugins/ovic-addon-toolkit/includes/admin/plugin-update-checker/Puc/v4p11/DebugBar/PluginExtension.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_Update' not found in wp-content/plugins/ovic-addon-toolkit/includes/admin/plugin-update-checker/Puc/v4p11/Plugin/Update.php:11
    • > PHP Warning
      Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/ovic-addon-toolkit/templates/elementor/section.php on line 11
    • > PHP Warning
      Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/ovic-addon-toolkit/templates/elementor/column.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\TemplateLibrary\\Source_Base' not found in wp-content/plugins/ovic-addon-toolkit/includes/classes/class-remote-source.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_Metadata' not found in wp-content/plugins/ovic-addon-toolkit/includes/admin/plugin-update-checker/Puc/v4p11/Update.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_Factory' not found in wp-content/plugins/ovic-addon-toolkit/includes/admin/plugin-update-checker/Puc/v4/Factory.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in ovic-addon-toolkit/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

ovic-addon-toolkit/plugin-toolkit.php 85% from 13 tests

The main file in "Ovic Addon Toolkit" v. 2.6.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ovic-addon-toolkit.php" instead of "plugin-toolkit.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin81,850 lines of code in 259 files:
LanguageFilesBlank linesComment linesLines of code
PHP1766,4019,93341,633
SVG120412,390
JavaScript312,8261,38811,737
PO File73,7665,6638,271
CSS311,0645517,569
Markdown1740227
JSON10023

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity28.49
▷ Minimum class complexity1.00
▷ Maximum class complexity207.00
Average method complexity4.22
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes146
▷ Abstract classes96.16%
▷ Concrete classes13793.84%
▷ Final classes10.73%
Methods1,281
▷ Static methods1027.96%
▷ Public methods99577.67%
▷ Protected methods24519.13%
▷ Private methods413.20%
Functions116
▷ Named functions10388.79%
▷ Anonymous functions1311.21%
Constants17
▷ Global constants952.94%
▷ Class constants847.06%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/options/assets/images/chosen-sprite@2x.png0.72KB0.83KB0.00%
includes/admin/dashboard/images/icon-menu.png1.11KB0.37KB▼ 66.43%
includes/options/assets/images/chosen-sprite.png0.53KB0.88KB0.00%
includes/options/assets/images/checkerboard.png2.29KB2.54KB0.00%
assets/images/logo.png2.44KB1.09KB▼ 55.48%