72% wp-genesis-box

Code Review | WP Genesis Box

WordPress plugin WP Genesis Box scored 72% from 54 tests.

About plugin

  • Plugin page: wp-genesis-box
  • Plugin version: 0.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2013
  • Latest release: Jan 20, 2015
  • Number of updates: 37
  • Update frequency: every 19.2 days
  • Top authors: jp2112 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,984 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.95ms] Passed 4 tests

Server-side resources used by WP Genesis Box
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.96 ▼3.51
Dashboard /wp-admin3.32 ▲0.0252.36 ▲1.54
Posts /wp-admin/edit.php3.37 ▲0.0149.93 ▲1.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.59 ▲0.07
Media Library /wp-admin/upload.php3.24 ▲0.0135.01 ▼1.52
WP Genesis Box /wp-admin/options-general.php?page=wp-genesis-box3.1831.09

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
wp_genesis_box
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Genesis Box
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.44 ▲0.071.84 ▼0.0942.21 ▼9.35
Dashboard /wp-admin2,210 ▲255.01 ▼0.85107.75 ▲7.1642.69 ▼1.93
Posts /wp-admin/edit.php2,093 ▲11.99 ▼0.0238.96 ▼1.9135.79 ▼1.05
Add New Post /wp-admin/post-new.php1,533 ▼923.32 ▲4.85636.70 ▲23.7269.74 ▲17.83
Media Library /wp-admin/upload.php1,392 ▲14.20 ▲0.0194.48 ▼9.3642.49 ▼1.87
WP Genesis Box /wp-admin/options-general.php?page=wp-genesis-box1,1522.2026.5140.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-genesis-box
    • > Notice in wp-content/plugins/wp-genesis-box/wp-genesis-box.php+164
    Undefined variable: selectedimage

SRP 50% 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-genesis-box/wp-genesis-box.php:21

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wp-genesis-box
    • > Network (severe)
    wp-content/plugins/wp-genesis-box/images/.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: genesis, rounded, image, affiliate, commission...

wp-genesis-box/wp-genesis-box.php Passed 13 tests

This is the main PHP file of "WP Genesis Box" version 0.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
Display the Genesis framework affiliate box on your WordPress website. Make money as a Studiopress affiliate.

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 plugin572 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP33260556
CSS20013
JavaScript1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants29
▷ Global constants29100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
38 PNG files occupy 0.67MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/genesis_framework_logo20.png5.89KB1.91KB▼ 67.58%
images/genesis_framework_logo9.png3.33KB2.14KB▼ 35.88%
images/genesis_framework_logo7.png7.99KB3.50KB▼ 56.24%
images/genesis_framework_logo29.png12.75KB6.72KB▼ 47.26%
images/genesis_framework_logo2.png3.68KB1.97KB▼ 46.38%