73% functionality-for-honos-theme

Code Review | Functionality for honos theme

WordPress plugin Functionality for honos theme scored 73% from 54 tests.

About plugin

  • Plugin page: functionality-for...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8
  • WordPress version: 5.9.2
  • First release: Jun 15, 2016
  • Latest release: Jun 5, 2017
  • Number of updates: 6
  • Update frequency: every 59.3 days
  • Top authors: Cohhe (66.67%)sprincis (50%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 4,274 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2054.79 ▲7.52
Dashboard /wp-admin3.55 ▲0.1433.88 ▼0.23
Posts /wp-admin/edit.php3.78 ▲0.1337.59 ▲0.13
Add New Post /wp-admin/post-new.php7.02 ▲0.0593.16 ▼1,172.70
Media Library /wp-admin/upload.php3.43 ▲0.1326.44 ▲1.04
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php6.3756.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,928 ▲17016.20 ▲0.539.15 ▲2.622.52 ▲0.00
Dashboard /wp-admin2,901 ▲406.18 ▼0.04119.32 ▼26.94157.44 ▼0.24
Posts /wp-admin/edit.php2,700 ▲93.23 ▼0.0163.24 ▼3.76141.99 ▼3.21
Add New Post /wp-admin/post-new.php1,873 ▲20721.86 ▲1.08403.51 ▼20.95174.39 ▲6.81
Media Library /wp-admin/upload.php1,708 ▲105.53 ▲0.03138.30 ▼12.70186.11 ▲0.67
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php7,29120.00504.85161.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP195741,0122,260
PO File176163171
JavaScript24546
CSS2080

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 code0.25
Average class complexity12.04
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes28.70%
▷ Concrete classes2191.30%
▷ Final classes00.00%
Methods123
▷ Static methods1310.57%
▷ Public methods10585.37%
▷ Protected methods21.63%
▷ Private methods1613.01%
Functions21
▷ Named functions2095.24%
▷ Anonymous functions14.76%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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