84% jimmy-branding

Code Review | Jimmy Branding

WordPress plugin Jimmy Branding scored84%from 54 tests.

About plugin

  • Plugin page: jimmy-branding
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Jun 21, 2017
  • Latest release: Apr 26, 2018
  • Number of updates: 9
  • Update frequency: every 194.8 days
  • Top authors: kenjmk7r9merchant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,952 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.29ms] Passed 4 tests

This is a short check of server-side resources used by Jimmy Branding
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1539.09 ▼3.26
Dashboard /wp-admin3.48 ▲0.1457.21 ▲2.08
Posts /wp-admin/edit.php3.60 ▲0.2055.38 ▲2.20
Add New Post /wp-admin/post-new.php6.06 ▲0.1490.27 ▼22.19
Media Library /wp-admin/upload.php3.40 ▲0.1339.44 ▲2.71
Add New /wp-admin/post-new.php?post_type=jbranding3.5250.17
jBrandings /wp-admin/edit.php?post_type=jbranding3.4437.73

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 19 new options
New WordPress options
jimmy_branding_option_color_opener
jimmy_branding_option_content
jimmy_branding_option_webgl_choice
jimmy_branding_option_width_percents
can_compress_scripts
db_upgraded
widget_recent-posts
jimmy_branding_option_height_min_percents
jimmy_branding_option_res_choice
jimmy_branding_option_opener_choice
...

Browser metrics Passed 4 tests

An overview of browser requirements for Jimmy Branding
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.38 ▲0.031.53 ▼0.0640.11 ▼1.39
Dashboard /wp-admin2,224 ▲475.57 ▲0.0590.15 ▲4.2441.92 ▲1.65
Posts /wp-admin/edit.php2,129 ▲292.01 ▲0.0239.44 ▲1.6635.59 ▲2.47
Add New Post /wp-admin/post-new.php1,559 ▲3318.36 ▼4.48655.57 ▼17.3662.25 ▲1.04
Media Library /wp-admin/upload.php1,432 ▲324.19 ▲0.0099.58 ▼5.0344.38 ▼3.20
Add New /wp-admin/post-new.php?post_type=jbranding2,2187.54167.5164.23
jBrandings /wp-admin/edit.php?post_type=jbranding1,1011.9130.3231.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jimmy-branding/jimmy-branding.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #3 ('Select' Sub Menu of 'jBrandings' Menu)
The official readme.txt is a good inspiration

jimmy-branding/jimmy-branding.php 92% from 13 tests

The main PHP file in "Jimmy Branding" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
There were no executable files found in this plugin2,670 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript64002681,998
PHP212455583
CSS213889

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions9
▷ Named functions9100.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
There are no PNG files in this plugin