84% highlight-reel

Code Review | Highlight Reel

WordPress plugin Highlight Reel scored84%from 54 tests.

About plugin

  • Plugin page: highlight-reel
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 23, 2013
  • Latest release: Mar 1, 2013
  • Number of updates: 18
  • Update frequency: every 0.4 days
  • Top authors: JamieCassidy (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,406 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Highlight Reel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.73 ▼8.49
Dashboard /wp-admin3.34 ▼0.0147.94 ▼12.57
Posts /wp-admin/edit.php3.39 ▲0.0350.27 ▼0.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.72 ▼4.95
Media Library /wp-admin/upload.php3.26 ▲0.0337.76 ▲3.53
Highlight Reel /wp-admin/options-general.php?page=hr-options3.2331.83

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Highlight Reel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.72 ▲0.521.66 ▼0.2647.10 ▲3.87
Dashboard /wp-admin2,201 ▲215.51 ▼0.0690.95 ▼2.5941.32 ▲2.65
Posts /wp-admin/edit.php2,115 ▲152.00 ▲0.0141.19 ▲3.1536.91 ▲0.77
Add New Post /wp-admin/post-new.php1,537 ▲1123.61 ▲0.27657.49 ▲20.5051.90 ▼6.66
Media Library /wp-admin/upload.php1,409 ▲94.26 ▲0.03100.12 ▼7.6646.40 ▼0.72
Highlight Reel /wp-admin/options-general.php?page=hr-options8042.0424.8725.25

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • hr_shots_to_show
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/highlight-reel/highlight-reel.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === highlight-reel === )
The official readme.txt is a good inspiration

highlight-reel/highlight-reel.php Passed 13 tests

The principal PHP file in "Highlight Reel" v. 1.1 is loaded by WordPress automatically on each request
94 characters long description:
A simple plugin that enables you to easily display your latest Dribbble shots on your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin128 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13510128

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.15
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin