79% functionality-for-nickel-theme

Code Review | Functionality for nickel theme

WordPress plugin Functionality for nickel theme scored 79% from 54 tests.

About plugin

  • Plugin page: functionality-for...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.2.3
  • WordPress version: 5.9.2
  • First release: Apr 5, 2016
  • Latest release: Mar 31, 2016
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: Cohhe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 899 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼305.10ms] Passed 4 tests

A check of server-side resources used by Functionality for nickel theme
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0559.35 ▲3.76
Dashboard /wp-admin3.43 ▲0.0338.05 ▼26.00
Posts /wp-admin/edit.php3.66 ▲0.0255.97 ▲4.21
Add New Post /wp-admin/post-new.php6.90 ▼0.0796.54 ▼1,196.91
Media Library /wp-admin/upload.php3.31 ▲0.0229.53 ▼1.25

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 1 new option
New WordPress options
widget_nickel-directory-social

Browser metrics Passed 4 tests

Checking browser requirements for Functionality for nickel theme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,876 ▲12216.60 ▲1.038.82 ▲2.482.07 ▼0.49
Dashboard /wp-admin2,896 ▲356.06 ▼0.09113.01 ▼23.59160.43 ▼3.76
Posts /wp-admin/edit.php2,677 ▼113.24 ▲0.0179.64 ▼17.19143.60 ▼2.58
Add New Post /wp-admin/post-new.php1,785 ▲12416.82 ▲1.30412.42 ▼6.53195.76 ▲46.14
Media Library /wp-admin/upload.php1,694 ▼45.53 ▲0.00143.73 ▲9.13191.05 ▲7.48

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_nickel-directory-social

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/functionality-for-nickel-theme/includes/widgets/widget-recent-posts-plus.php
    • > /wp-content/plugins/functionality-for-nickel-theme/admin/partials/nickel-functionality-admin-display.php
    • > /wp-content/plugins/functionality-for-nickel-theme/public/partials/nickel-functionality-public-display.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-nickel-theme/includes/widgets/widget-about-author.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-nickel-theme/includes/widgets/widget-followers.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-nickel-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
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: nickel, ecommerce

functionality-for-nickel-theme/functionality-for-nickel-theme.php Passed 13 tests

The main file in "Functionality for nickel theme" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
This plugin contains Nickel theme core functionality

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,454 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP195771,0052,240
PO File171153161
CSS213847
JavaScript24546

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin