84% upper-right-make-it-bright

Code Review | Genesis - Upper Right Make It Bright

WordPress plugin Genesis - Upper Right Make It Bright scored84%from 54 tests.

About plugin

  • Plugin page: upper-right-make-...
  • Plugin version: 1.1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2.4
  • WordPress version: 6.3.1
  • First release: Aug 19, 2016
  • Latest release: Dec 5, 2019
  • Number of updates: 22
  • Update frequency: every 55.6 days
  • Top authors: alexdemchak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /5,737 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.55ms] Passed 4 tests

Server-side resources used by Genesis - Upper Right Make It Bright
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0745.04 ▲1.41
Dashboard /wp-admin3.36 ▲0.0648.42 ▼7.53
Posts /wp-admin/edit.php3.41 ▲0.0546.27 ▼3.71
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.97 ▼8.38
Media Library /wp-admin/upload.php3.28 ▲0.0541.76 ▲5.27

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_upper_right_mib_call_to_action
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Genesis - Upper Right Make It Bright
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.50 ▼0.539.88 ▲7.9944.55 ▲2.76
Dashboard /wp-admin2,192 ▲155.64 ▼0.0191.95 ▼4.9144.47 ▲2.90
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0334.78 ▼7.9530.75 ▼8.31
Add New Post /wp-admin/post-new.php1,526 ▼023.03 ▼0.04681.81 ▲18.4363.95 ▲6.23
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.04102.74 ▼9.4445.19 ▼3.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_upper_right_mib_call_to_action
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 4× 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/upper-right-make-it-bright/upper-right-make-it-bright/upper-right-make-it-bright.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/upper-right-make-it-bright/lib/widgets/widget-call-to-action.php:42
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/upper-right-make-it-bright/upper-right-make-it-bright/lib/widgets/widget-call-to-action.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upper-right-make-it-bright/upper-right-make-it-bright.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: widget area, genesis, sidebar

upper-right-make-it-bright/upper-right-make-it-bright.php 92% from 13 tests

The entry point to "Genesis - Upper Right Make It Bright" version 1.1.3.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin770 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP477159381
CSS27459360
JavaScript26929

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity7.50
▷ Minimum class complexity6.00
▷ Maximum class complexity9.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.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