68% glorious-services-support

Code Review | Glorious Services & Support

WordPress plugin Glorious Services & Support scored 68% from 54 tests.

About plugin

  • Plugin page: glorious-services...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 5.8.1
  • First release: Feb 9, 2021
  • Latest release: Feb 9, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: gloriousthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 132 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲4.66MB] [CPU: ▼112.57ms] Passed 4 tests

An overview of server-side resources used by Glorious Services & Support
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /8.25 ▲5.5252.53 ▲29.52
Dashboard /wp-admin8.26 ▲5.2166.18 ▲29.41
Posts /wp-admin/edit.php8.27 ▲5.1568.85 ▲25.78
Add New Post /wp-admin/post-new.php8.48 ▲3.04109.23 ▼534.57
Media Library /wp-admin/upload.php8.27 ▲5.2657.89 ▲29.09
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius8.2753.52

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 287 new files
Database: no new tables, 4 new options
New WordPress options
fs_accounts
fs_debug_mode
fs_active_plugins
fs_gdpr

Browser metrics Passed 4 tests

Checking browser requirements for Glorious Services & Support
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,750 ▲15415.90 ▲0.2911.02 ▼0.6644.65 ▼2.25
Dashboard /wp-admin3,013 ▲825.93 ▼0.04132.28 ▼14.07148.61 ▲29.44
Posts /wp-admin/edit.php2,786 ▲502.59 ▼0.2666.11 ▼1.49100.09 ▼1.44
Add New Post /wp-admin/post-new.php1,694 ▲1118.84 ▲0.05388.51 ▲11.50107.15 ▼5.31
Media Library /wp-admin/upload.php1,795 ▼155.02 ▼0.03130.81 ▼17.35153.69 ▲34.82
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius1,4862.1153.3372.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/glorious-services-support/freemius/includes/class-freemius.php+8540
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 4 options in the database
    • fs_accounts
    • fs_gdpr
    • fs_active_plugins
    • fs_debug_mode

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/glorious-services-support/freemius/templates/ajax-loader.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/glorious-services-support/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/glorious-services-support/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/glorious-services-support/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/glorious-services-support/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/glorious-services-support/freemius/templates/partials/network-activation.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/glorious-services-support/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/glorious-services-support/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/glorious-services-support/freemius/templates/account/partials/addon.php on line 8

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: wordpress support, services, support, wordpress help, gloriousthemes

glorious-services-support/glorious-services-support.php 92% from 13 tests

This is the main PHP file of "Glorious Services & Support" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 260 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin52,408 lines of code in 190 files:
LanguageFilesBlank linesComment linesLines of code
PHP1127,27216,09730,629
PO File137,8789,53216,967
Sass34464802,852
CSS14025672
SVG202627
JavaScript554135308
Markdown61060288
JSON20037
YAML22028

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,895)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity89.93
▷ Minimum class complexity1.00
▷ Maximum class complexity2,895.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes45
▷ Abstract classes24.44%
▷ Concrete classes4395.56%
▷ Final classes00.00%
Methods1,133
▷ Static methods17315.27%
▷ Public methods79169.81%
▷ Protected methods151.32%
▷ Private methods32728.86%
Functions101
▷ Named functions101100.00%
▷ Anonymous functions00.00%
Constants125
▷ Global constants10080.00%
▷ Class constants2520.00%
▷ Public constants25100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
41 PNG files occupy 0.67MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/includes/freemius-pricing/27b5a722a5553d9de0170325267fccec.png6.35KB3.38KB▼ 46.76%
assets/img/multisite.png23.92KB12.16KB▼ 49.18%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
images/icon24.png1.24KB1.16KB▼ 6.07%
freemius-pricing/178afa6030e76635dbe835e111d2c507.png5.88KB3.01KB▼ 48.84%