84% sb-core

Code Review | Extensions by HocWP Team

WordPress plugin Extensions by HocWP Team scored84%from 54 tests.

About plugin

  • Plugin page: sb-core
  • Plugin version: 0.2.3.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Oct 1, 2014
  • Latest release: Sep 27, 2023
  • Number of updates: 279
  • Update frequency: every 11.8 days
  • Top authors: skylarkcob (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /14,803 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼12.18ms] Passed 4 tests

An overview of server-side resources used by Extensions by HocWP Team
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0434.80 ▼8.35
Dashboard /wp-admin3.35 ▲0.0043.02 ▼18.98
Posts /wp-admin/edit.php3.46 ▲0.1045.95 ▲0.20
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.30 ▼21.60
Media Library /wp-admin/upload.php3.27 ▲0.0436.27 ▲5.71

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 186 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Extensions by HocWP Team: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9313.63 ▼0.602.13 ▲0.2439.11 ▼4.73
Dashboard /wp-admin2,220 ▲325.91 ▲0.05107.85 ▼10.6241.38 ▼4.95
Posts /wp-admin/edit.php2,103 ▲142.02 ▲0.0440.01 ▲4.5238.35 ▼0.33
Add New Post /wp-admin/post-new.php1,547 ▲1423.27 ▲0.37596.72 ▼65.9847.07 ▼4.50
Media Library /wp-admin/upload.php1,402 ▲174.21 ▲0.00146.14 ▲43.8969.23 ▲26.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/sb-core/custom-ajax.php on line 18
    • > PHP Warning
      require_once(ABSPATHWPINC/template.php): failed to open stream: No such file or directory in wp-content/plugins/sb-core/custom-ajax.php on line 18
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sb-core/custom-ajax.php on line 18
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/sb-core/custom-ajax.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/sb-core/ext/anime/view-movie.php:2

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 errors were detected

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
3 plugin tags: extensions, hocwp, hocwp theme

sb-core/sb-core.php Passed 13 tests

This is the main PHP file of "Extensions by HocWP Team" version 0.2.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
137 characters long description:
Extensions for using in theme which is created by HocWP Team. This plugin will not work if you use it on theme not written by HocWP Team.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin17,043 lines of code in 164 files:
LanguageFilesBlank linesComment linesLines of code
PHP713,52330413,659
PO File15255591,346
JavaScript51228151,060
CSS4118410978

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity45.93
▷ Minimum class complexity1.00
▷ Maximum class complexity230.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes27.41%
▷ Concrete classes2592.59%
▷ Final classes312.00%
Methods360
▷ Static methods185.00%
▷ Public methods35097.22%
▷ Protected methods00.00%
▷ Private methods102.78%
Functions195
▷ Named functions19298.46%
▷ Anonymous functions31.54%
Constants13
▷ Global constants861.54%
▷ Class constants538.46%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected