84% wpcodefactory-helper

Code Review | WPFactory Helper

WordPress plugin WPFactory Helper scored84%from 54 tests.

About plugin

  • Plugin page: wpcodefactory-helper
  • Plugin version: 1.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: Aug 20, 2017
  • Latest release: Nov 21, 2023
  • Number of updates: 36
  • Update frequency: every 63.5 days
  • Top authors: algoritmika (83.33%)wpcodefactory (19.44%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /15,648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▲2.33ms] Passed 4 tests

An overview of server-side resources used by WPFactory Helper
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2245.92 ▲3.95
Dashboard /wp-admin3.51 ▲0.1656.43 ▼6.14
Posts /wp-admin/edit.php3.62 ▲0.2755.52 ▲7.18
Add New Post /wp-admin/post-new.php6.09 ▲0.20100.04 ▲4.31
Media Library /wp-admin/upload.php3.43 ▲0.2045.75 ▲12.77
WPFactory /wp-admin/options-general.php?page=wpcodefactory-helper3.4242.47

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 122 new files
Database: no new tables, 15 new options
New WordPress options
alg_check_sites_keys_cron_time_schedule
alg_wpcodefactory_helper_themes
alg_check_sites_keys_cron_time_last_run
alg_get_plugins_list_cron_time_last_run
alg_get_plugins_list_cron_time_schedule
db_upgraded
widget_recent-comments
alg_wpcodefactory_helper_version
theysaidso_admin_options
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for WPFactory Helper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.27 ▼0.001.80 ▼0.0545.98 ▲2.80
Dashboard /wp-admin2,199 ▲285.60 ▲0.0385.06 ▼7.1840.28 ▼2.36
Posts /wp-admin/edit.php2,104 ▲41.97 ▲0.0435.85 ▼8.4132.30 ▼6.07
Add New Post /wp-admin/post-new.php1,529 ▲323.39 ▲0.15666.36 ▲9.8162.86 ▲11.08
Media Library /wp-admin/upload.php1,407 ▲104.20 ▲0.0398.66 ▼0.9244.64 ▲1.24
WPFactory /wp-admin/options-general.php?page=wpcodefactory-helper7731.9926.8040.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 15 options in the database
    • alg_check_sites_keys_cron_time_schedule
    • db_upgraded
    • alg_wpcodefactory_helper_plugins
    • can_compress_scripts
    • alg_wpcodefactory_helper_themes
    • widget_recent-posts
    • alg_check_sites_keys_cron_time_last_run
    • theysaidso_admin_options
    • alg_get_plugins_list_cron_time_schedule
    • alg_get_themes_list_cron_time_schedule
    • ...

Smoke tests 75% 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 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 take a closer look at the following
  • 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_Update' not found in wp-content/plugins/wpcodefactory-helper/includes/lib/plugin-update-checker/Puc/v4p13/Plugin/Update.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_Update' not found in wp-content/plugins/wpcodefactory-helper/includes/lib/plugin-update-checker/Puc/v4p13/Theme/Update.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_InstalledPackage' not found in wp-content/plugins/wpcodefactory-helper/includes/lib/plugin-update-checker/Puc/v4p13/Plugin/Package.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_Factory' not found in wp-content/plugins/wpcodefactory-helper/includes/lib/plugin-update-checker/Puc/v4/Factory.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_DebugBar_Extension' not found in wp-content/plugins/wpcodefactory-helper/includes/lib/plugin-update-checker/Puc/v4p13/DebugBar/PluginExtension.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_Metadata' not found in wp-content/plugins/wpcodefactory-helper/includes/lib/plugin-update-checker/Puc/v4p13/Update.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_InstalledPackage' not found in wp-content/plugins/wpcodefactory-helper/includes/lib/plugin-update-checker/Puc/v4p13/Theme/Package.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_DebugBar_Panel' not found in wp-content/plugins/wpcodefactory-helper/includes/lib/plugin-update-checker/Puc/v4p13/DebugBar/ThemePanel.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_Vcs_Api' not found in wp-content/plugins/wpcodefactory-helper/includes/lib/plugin-update-checker/Puc/v4p13/Vcs/BitBucketApi.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p13_UpdateChecker' not found in wp-content/plugins/wpcodefactory-helper/includes/lib/plugin-update-checker/Puc/v4p13/Theme/UpdateChecker.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
2 plugin tags: wpcodefactory, wpfactory

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

The main PHP script in "WPFactory Helper" version 1.5.4 is automatically included on every request by WordPress
75 characters long description:
Plugin helps you manage subscriptions for your products from WPFactory.com.

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
There were no executable files found in this plugin7,674 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
PHP451,6902,7376,400
PO File24143146833
Markdown1720254
JSON38072
JavaScript2122560
CSS114155

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity24.52
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes39
▷ Abstract classes512.82%
▷ Concrete classes3487.18%
▷ Final classes12.94%
Methods448
▷ Static methods286.25%
▷ Public methods27160.49%
▷ Protected methods16336.38%
▷ Private methods143.12%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin