78% relicwp-helper

Code Review | RelicWP Helper

WordPress plugin RelicWP Helper scored78%from 54 tests.

About plugin

  • Plugin page: relicwp-helper
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 29, 2022
  • Latest release: Oct 13, 2022
  • Number of updates: 3
  • Update frequency: every 149.0 days
  • Top authors: puredevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /217 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.58ms] Passed 4 tests

This is a short check of server-side resources used by RelicWP Helper
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.14 ▲12.99
Dashboard /wp-admin3.31 ▲0.0146.05 ▼2.93
Posts /wp-admin/edit.php3.36 ▲0.0148.47 ▼1.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.33 ▼7.06
Media Library /wp-admin/upload.php3.24 ▲0.0138.88 ▲5.66

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 605 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
relicwp-helper-version
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for RelicWP Helper
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.74 ▲0.391.57 ▼0.0240.17 ▼0.05
Dashboard /wp-admin2,195 ▲265.62 ▼0.0184.75 ▼18.1134.88 ▼9.47
Posts /wp-admin/edit.php2,097 ▼32.00 ▲0.0134.46 ▼3.9530.27 ▼7.04
Add New Post /wp-admin/post-new.php1,531 ▼323.22 ▲5.15610.10 ▲9.5870.07 ▼28.86
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.0099.14 ▼7.7945.08 ▲3.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • relicwp-helper-version
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 34× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/relicwp-helper/includes/metabox/controls/rgba-color/template.php
    • > /wp-content/plugins/relicwp-helper/includes/metabox/controls/media/template.php
    • > /wp-content/plugins/relicwp-helper/includes/metabox/butterbean/tmpl/control-radio.php
    • > /wp-content/plugins/relicwp-helper/includes/metabox/butterbean/tmpl/control-multi-avatars.php
    • > /wp-content/plugins/relicwp-helper/includes/metabox/controls/color/template.php
    • > /wp-content/plugins/relicwp-helper/includes/metabox/butterbean/tmpl/control-media.php
    • > /wp-content/plugins/relicwp-helper/includes/metabox/butterbean/tmpl/control-image.php
    • > /wp-content/plugins/relicwp-helper/includes/metabox/butterbean/tmpl/section.php
    • > /wp-content/plugins/relicwp-helper/includes/metabox/butterbean/tmpl/control-range.php
    • > /wp-content/plugins/relicwp-helper/includes/metabox/controls/buttonset/template.php
  • 53× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Setting' not found in wp-content/plugins/relicwp-helper/includes/metabox/butterbean/inc/settings/class-setting-datetime.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/relicwp-helper/includes/metabox/butterbean/inc/controls/class-control-palette.php:19
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/relicwp-helper/includes/freemius/templates/account/partials/addon.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/relicwp-helper/includes/panel/scssphp/src/Formatter/Expanded.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/relicwp-helper/includes/metabox/butterbean/inc/controls/class-control-textarea.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'PdWP_ButterBean_Control' not found in wp-content/plugins/relicwp-helper/includes/metabox/butterbean/inc/controls/class-control-editor.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/relicwp-helper/includes/panel/scssphp/src/Formatter/Compressed.php:22
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/relicwp-helper/includes/freemius/templates/account/partials/addon.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/relicwp-helper/includes/metabox/controls/multiple-select/class-control-multiple-select.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'RelicWP_Icon_Picker_Type_Font' not found in wp-content/plugins/relicwp-helper/includes/menu-icons/includes/library/icon-selector/includes/types/foundation-icons.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: metabox, metaboxes, widgets, helper plugin, relicwp...

relicwp-helper/relicwp-helper.php Passed 13 tests

The entry point to "RelicWP Helper" version 1.0.0 is a PHP file that has certain tags in its header comment area
125 characters long description:
Use RelicWP helper to activate features like widgets, import/export, metaboxes, and a panel to activate other premium addons.

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin105,208 lines of code in 483 files:
LanguageFilesBlank linesComment linesLines of code
PHP28613,96226,59064,015
JavaScript685,5543,16820,970
CSS1031,7751,03516,187
SVG4361,815
Sass15274201,565
Markdown51940615
JSON20041

PHP code 0% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,907)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 130)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity40.54
▷ Minimum class complexity1.00
▷ Maximum class complexity2,907.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity130.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes192
▷ Abstract classes63.12%
▷ Concrete classes18696.88%
▷ Final classes126.45%
Methods2,207
▷ Static methods32214.59%
▷ Public methods1,54169.82%
▷ Protected methods30213.68%
▷ Private methods36416.49%
Functions163
▷ Named functions15192.64%
▷ Anonymous functions127.36%
Constants205
▷ Global constants10651.71%
▷ Class constants9948.29%
▷ Public constants99100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
57 compressed PNG files occupy 0.19MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/panel/assets/img/plugins/sticky-header.png1.09KB1.09KB0.45%
includes/panel/assets/img/rec-plugins/slider-revolution-icon.png4.17KB4.29KB0.00%
includes/panel/assets/img/plugins/side-panel.png0.64KB0.65KB0.00%
includes/panel/assets/img/sticky-footer-image.png3.53KB3.53KB0.00%
includes/freemius/assets/img/relicwp.png4.56KB2.39KB▼ 47.61%