Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼292.94ms] Passed 4 tests
Analyzing server-side resources used by Functionality for honos theme
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.20 | 54.79 ▲7.52 |
Dashboard /wp-admin | 3.55 ▲0.14 | 33.88 ▼0.23 |
Posts /wp-admin/edit.php | 3.78 ▲0.13 | 37.59 ▲0.13 |
Add New Post /wp-admin/post-new.php | 7.02 ▲0.05 | 93.16 ▼1,172.70 |
Media Library /wp-admin/upload.php | 3.43 ▲0.13 | 26.44 ▲1.04 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 6.37 | 56.41 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Functionality for honos theme
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,928 ▲170 | 16.20 ▲0.53 | 9.15 ▲2.62 | 2.52 ▲0.00 |
Dashboard /wp-admin | 2,901 ▲40 | 6.18 ▼0.04 | 119.32 ▼26.94 | 157.44 ▼0.24 |
Posts /wp-admin/edit.php | 2,700 ▲9 | 3.23 ▼0.01 | 63.24 ▼3.76 | 141.99 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,873 ▲207 | 21.86 ▲1.08 | 403.51 ▼20.95 | 174.39 ▲6.81 |
Media Library /wp-admin/upload.php | 1,708 ▲10 | 5.53 ▲0.03 | 138.30 ▼12.70 | 186.11 ▲0.67 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 7,291 | 20.00 | 504.85 | 161.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
Trying to get property 'title' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/functionality-for-honos-theme/includes/widgets/widget-recent-posts-plus.php
- > /wp-content/plugins/functionality-for-honos-theme/admin/partials/honos-functionality-admin-display.php
- > /wp-content/plugins/functionality-for-honos-theme/public/partials/honos-functionality-public-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-honos-theme/includes/widgets/widget-followers.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-honos-theme/includes/widgets/widget-about-author.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-honos-theme/includes/widgets/widget-fast-flickr.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: honos, ecommerce
functionality-for-honos-theme/functionality-for-honos-theme.php Passed 13 tests
The primary PHP file in "Functionality for honos theme" version 1.1 is used by WordPress to initiate all plugin functionality
51 characters long description:
This plugin contains Honos theme core functionality
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,437 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 574 | 1,012 | 2,260 |
PO File | 1 | 76 | 163 | 171 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 2 | 8.70% |
▷ Concrete classes | 21 | 91.30% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 13 | 10.57% |
▷ Public methods | 105 | 85.37% |
▷ Protected methods | 2 | 1.63% |
▷ Private methods | 16 | 13.01% |
Functions | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected