84% appsero-helper

Code Review | Appsero Helper

WordPress plugin Appsero Helper scored84%from 54 tests.

About plugin

  • Plugin page: appsero-helper
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 30, 2019
  • Latest release: Aug 16, 2023
  • Number of updates: 31
  • Update frequency: every 53.5 days
  • Top authors: tareq1988 (96.77%)sourovroy (6.45%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /4,436 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.27MB] [CPU: ▼7.37ms] Passed 4 tests

Server-side resources used by Appsero Helper
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2940.85 ▲2.34
Dashboard /wp-admin3.62 ▲0.2847.87 ▼11.15
Posts /wp-admin/edit.php3.67 ▲0.3244.36 ▼6.19
Add New Post /wp-admin/post-new.php6.16 ▲0.2886.79 ▼12.09
Media Library /wp-admin/upload.php3.48 ▲0.2535.77 ▼0.04
Appsero Helper /wp-admin/options-general.php?page=appsero_helper3.4634.74

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Appsero Helper
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10813.23 ▼0.984.70 ▲3.0243.33 ▲0.40
Dashboard /wp-admin2,238 ▲534.85 ▼1.05103.11 ▲3.7039.57 ▼10.07
Posts /wp-admin/edit.php2,118 ▲262.00 ▼0.0235.75 ▼7.6333.65 ▼5.33
Add New Post /wp-admin/post-new.php1,570 ▲5618.09 ▲0.62609.36 ▼46.8251.82 ▲0.03
Media Library /wp-admin/upload.php1,417 ▲294.26 ▼0.0393.76 ▼22.5541.11 ▼6.48
Appsero Helper /wp-admin/options-general.php?page=appsero_helper1,1702.0624.6237.23

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
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Good news, no errors were detected

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
The following issues need your attention
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Trait 'Appsero\\Helper\\Traits\\OrderHelper' not found in wp-content/plugins/appsero-helper/includes/WooCommerce/Orders.php on line 11
    • > PHP Fatal error
      Trait 'Appsero\\Helper\\Traits\\OrderHelper' not found in wp-content/plugins/appsero-helper/includes/WooCommerce/Subscriptions.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'Affiliate_WP_Base' not found in wp-content/plugins/appsero-helper/includes/AffiliateWP/Paddle_Integration.php:11
    • > PHP Fatal error
      Trait 'Appsero\\Helper\\Traits\\Hooker' not found in wp-content/plugins/appsero-helper/includes/Edd/SendRequests.php on line 15
    • > PHP Fatal error
      Trait 'Appsero\\Helper\\Traits\\Hooker' not found in wp-content/plugins/appsero-helper/includes/WooCommerce/OrderHooks.php on line 7
    • > PHP Fatal error
      Trait 'Appsero\\Helper\\Traits\\Hooker' not found in wp-content/plugins/appsero-helper/includes/Api.php on line 10
    • > PHP Fatal error
      Trait 'Appsero\\Helper\\Traits\\OrderHelper' not found in wp-content/plugins/appsero-helper/includes/Edd/Orders.php on line 13
    • > PHP Fatal error
      Trait 'Appsero\\Helper\\Traits\\SettingsHelper' not found in wp-content/plugins/appsero-helper/includes/SettingsPage.php on line 6
    • > PHP Fatal error
      Trait 'Appsero\\Helper\\WooCommerce\\UseCases\\SendRequestsHelper' not found in wp-content/plugins/appsero-helper/includes/WooCommerce/SendRequests.php on line 10
    • > PHP Fatal error
      Trait 'Appsero\\Helper\\Traits\\OrderHelper' not found in wp-content/plugins/appsero-helper/includes/Edd/Subscriptions.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: release, licensing, analytics, deactivation

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

Analyzing the main PHP file in "Appsero Helper" version 1.2.4
51 characters long description:
Helper plugin to connect WordPress store to Appsero

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
Everything looks great! No dangerous files found in this plugin4,685 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP471,2881,3274,095
CSS2145405
JavaScript4290167
XML11118

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity12.26
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces10
Interfaces0
Traits6
Classes40
▷ Abstract classes00.00%
▷ Concrete classes40100.00%
▷ Final classes12.50%
Methods245
▷ Static methods10.41%
▷ Public methods12952.65%
▷ Protected methods104.08%
▷ Private methods10643.27%
Functions18
▷ Named functions1688.89%
▷ Anonymous functions211.11%
Constants3
▷ Global constants3100.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/appsero-icon.png4.28KB4.41KB0.00%
assets/images/appsero-logo.png4.73KB4.99KB0.00%