84% superb-helper

Code Review | Superb Helper

WordPress plugin Superb Helper scored 84% from 54 tests.

About plugin

  • Plugin page: superb-helper
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.3
  • WordPress version: 6.3.1
  • First release: Dec 18, 2019
  • Latest release: Aug 16, 2023
  • Number of updates: 27
  • Update frequency: every 49.5 days
  • Top authors: suplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20,000+ active / 274,102 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.03MB] [CPU: ▼5.00ms] Passed 4 tests

Analyzing server-side resources used by Superb Helper
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.63 ▼3.54
Dashboard /wp-admin3.32 ▲0.0243.41 ▼10.75
Posts /wp-admin/edit.php3.44 ▲0.0843.32 ▼0.43
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.10 ▼5.26
Media Library /wp-admin/upload.php3.25 ▲0.0246.26 ▲9.10
Guides & Recommendations /wp-admin/admin.php?page=spbhlpr3.2730.41
Free Themes /wp-admin/admin.php?page=spbhlpr_themes3.2634.63
Go Pro /wp-admin/admin.php?page=spbhlpr_gopro3.2628.07
Free Plugins /wp-admin/admin.php?page=spbhlpr_plugins3.2630.65

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

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

Browser metrics Passed 4 tests

Superb Helper: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲12913.27 ▼0.984.17 ▲2.4316.93 ▼29.95
Dashboard /wp-admin2,270 ▲825.90 ▲0.0594.92 ▼12.5686.17 ▲40.36
Posts /wp-admin/edit.php2,156 ▲672.18 ▲0.1734.20 ▼4.8641.48 ▲5.41
Add New Post /wp-admin/post-new.php1,724 ▲19422.37 ▲4.10705.49 ▲96.3658.62 ▲5.92
Media Library /wp-admin/upload.php1,440 ▲494.18 ▼0.01111.78 ▲11.1893.92 ▲50.42
Guides & Recommendations /wp-admin/admin.php?page=spbhlpr1,3282.1026.3798.97
Free Themes /wp-admin/admin.php?page=spbhlpr_themes1,5011.7425.0983.60
Go Pro /wp-admin/admin.php?page=spbhlpr_gopro1,0841.7323.9442.61
Free Plugins /wp-admin/admin.php?page=spbhlpr_plugins1,0451.8627.1338.27

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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

SRP 50% 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
The following issues need your attention
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/superb-helper/inc/backend.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/superb-helper/inc/page_themes.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/superb-helper/inc/page_plugins.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/superb-helper/inc/page_gopro.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: helper, superb

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

The entry point to "Superb Helper" version 1.1.0 is a PHP file that has certain tags in its header comment area
51 characters long description:
Superb Helper is your personal WordPress assistant.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin108,738 lines of code in 1,156 files:
LanguageFilesBlank linesComment linesLines of code
JSON20056,383
SVG1,12501626,685
YAML10020,935
CSS71,473283,421
PHP192272701,245
JavaScript25069

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity15.43
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods48
▷ Static methods612.50%
▷ Public methods4083.33%
▷ Protected methods00.00%
▷ Private methods816.67%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
48 PNG files occupy 2.53MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/share-follow-buttons-small.png9.12KB4.05KB▼ 55.58%
assets/img/personalblogily.png55.92KB56.32KB0.00%
assets/img/fluid-basics.png71.73KB72.22KB0.00%
assets/img/blogfeedly.png43.64KB43.71KB0.00%
assets/img/woocommerce-logo.png3.02KB1.72KB▼ 42.90%