78% genesis-subpage-sidebar

Code Review | Genesis Subpage Sidebar

WordPress plugin Genesis Subpage Sidebar scored 78% from 54 tests.

About plugin

  • Plugin page: genesis-subpage-s...
  • Plugin version: 0.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2014
  • Latest release: Sep 27, 2014
  • Number of updates: 31
  • Update frequency: every 5.9 days
  • Top authors: jonschr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 3,295 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.65ms] Passed 4 tests

An overview of server-side resources used by Genesis Subpage Sidebar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.38 ▲4.03
Dashboard /wp-admin3.33 ▲0.0344.31 ▼2.59
Posts /wp-admin/edit.php3.38 ▲0.0244.63 ▲0.53
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.67 ▼8.45
Media Library /wp-admin/upload.php3.25 ▲0.0237.36 ▲3.90
Subpage Sidebar /wp-admin/options-general.php?page=gsfs-options3.1931.83

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Genesis Subpage Sidebar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.41 ▲0.041.78 ▲0.0144.10 ▼1.26
Dashboard /wp-admin2,207 ▲165.83 ▼0.0797.20 ▼0.9338.76 ▼6.33
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0634.53 ▼0.4235.77 ▲4.23
Add New Post /wp-admin/post-new.php1,539 ▲2023.19 ▲0.38558.68 ▼107.3554.42 ▲5.17
Media Library /wp-admin/upload.php1,386 ▼54.19 ▼0.0294.89 ▼7.5441.58 ▼4.51
Subpage Sidebar /wp-admin/options-general.php?page=gsfs-options8062.0625.0724.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=gsfs-options
    • > Notice in wp-content/plugins/genesis-subpage-sidebar/includes/admin-page.php+39
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/genesis-subpage-sidebar/genesis-subpage-fixed-sidebar.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-subpage-sidebar/includes/admin-page.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: genesis, widget, menu, studiopress, subpage...

genesis-subpage-sidebar/genesis-subpage-fixed-sidebar.php 92% from 13 tests

The entry point to "Genesis Subpage Sidebar" version 0.0.9 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("genesis-subpage-sidebar.php" instead of "genesis-subpage-fixed-sidebar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected232 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS2208106
PHP25258104
JavaScript18622

PHP code Passed 2 tests

Analyzing 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.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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