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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 34.80 ▼8.35 |
Dashboard /wp-admin | 3.35 ▲0.00 | 43.02 ▼18.98 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 45.95 ▲0.20 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.30 ▼21.60 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.63 ▼0.60 | 2.13 ▲0.24 | 39.11 ▼4.73 |
Dashboard /wp-admin | 2,220 ▲32 | 5.91 ▲0.05 | 107.85 ▼10.62 | 41.38 ▼4.95 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.02 ▲0.04 | 40.01 ▲4.52 | 38.35 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 23.27 ▲0.37 | 596.72 ▼65.98 | 47.07 ▼4.50 |
Media Library /wp-admin/upload.php | 1,402 ▲17 | 4.21 ▲0.00 | 146.14 ▲43.89 | 69.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 3,523 | 304 | 13,659 |
PO File | 1 | 525 | 559 | 1,346 |
JavaScript | 51 | 228 | 15 | 1,060 |
CSS | 41 | 184 | 10 | 978 |
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 code | 0.44 |
Average class complexity | 45.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 230.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 2 | 7.41% |
▷ Concrete classes | 25 | 92.59% |
▷ Final classes | 3 | 12.00% |
Methods | 360 | |
▷ Static methods | 18 | 5.00% |
▷ Public methods | 350 | 97.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 2.78% |
Functions | 195 | |
▷ Named functions | 192 | 98.46% |
▷ Anonymous functions | 3 | 1.54% |
Constants | 13 | |
▷ Global constants | 8 | 61.54% |
▷ Class constants | 5 | 38.46% |
▷ Public constants | 5 | 100.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