79% featured-image-notes

Code Review | Featured Image Notes

WordPress plugin Featured Image Notes scored79%from 54 tests.

About plugin

  • Plugin page: featured-image-notes
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2016
  • Latest release: Feb 24, 2017
  • Number of updates: 17
  • Update frequency: every 20.9 days
  • Top authors: drewrawitz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Featured Image Notes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.42 ▼6.07
Dashboard /wp-admin3.32 ▲0.0246.09 ▼2.39
Posts /wp-admin/edit.php3.37 ▲0.0246.51 ▼4.57
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.50 ▼18.41
Media Library /wp-admin/upload.php3.25 ▲0.0235.69 ▲1.03
Featured Image Notes /wp-admin/options-general.php?page=featured-image-notes3.2541.95

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
featured-image-notes

Browser metrics Passed 4 tests

This is an overview of browser requirements for Featured Image Notes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.35 ▲0.041.75 ▼0.2239.74 ▼3.89
Dashboard /wp-admin2,203 ▲235.64 ▲0.0892.11 ▲2.1842.72 ▲1.18
Posts /wp-admin/edit.php2,105 ▲52.00 ▲0.0236.20 ▼5.3333.29 ▼7.49
Add New Post /wp-admin/post-new.php1,538 ▲423.00 ▼0.18581.90 ▼47.0450.36 ▲4.97
Media Library /wp-admin/upload.php1,405 ▲54.30 ▲0.07101.24 ▼3.0243.99 ▼0.91
Featured Image Notes /wp-admin/options-general.php?page=featured-image-notes8552.0222.5528.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • featured-image-notes
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/featured-image-notes/public/partials/featured-image-notes-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/featured-image-notes/admin/partials/featured-image-notes-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: notes, meta box, featured image

featured-image-notes/featured-image-notes.php Passed 13 tests

This is the main PHP file of "Featured Image Notes" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
87 characters long description:
This plugin allows you to add notes to the Featured Image box for certain posts / pages

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin289 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12132515238
Markdown116024
CSS26821
JavaScript24546

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.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 images were found in this plugin