84% featured-image-reminder

Code Review | Featured Image Reminder

WordPress plugin Featured Image Reminder scored 84% from 54 tests.

About plugin

  • Plugin page: featured-image-re...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-4.7
  • WordPress version: 6.3.1
  • First release: Oct 9, 2014
  • Latest release: Dec 13, 2016
  • Number of updates: 9
  • Update frequency: every 88.6 days
  • Top authors: ahockley (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 2,405 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.10ms] Passed 4 tests

A check of server-side resources used by Featured Image Reminder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.14 ▼10.56
Dashboard /wp-admin3.31 ▲0.0146.58 ▼4.02
Posts /wp-admin/edit.php3.36 ▲0.0046.80 ▲0.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.19 ▼17.96
Media Library /wp-admin/upload.php3.23 ▲0.0038.14 ▲2.33

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Featured Image Reminder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.62 ▼0.601.57 ▼0.4243.05 ▼0.38
Dashboard /wp-admin2,208 ▲175.80 ▲0.9194.67 ▼9.0238.29 ▼4.58
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0139.14 ▲2.5035.14 ▼0.23
Add New Post /wp-admin/post-new.php1,536 ▲123.22 ▲0.04584.73 ▼1.5251.80 ▼4.21
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.0998.16 ▲0.6441.34 ▲0.08

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 did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-image-reminder/featured-image-reminder.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: publish, featured-image

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

The principal PHP file in "Featured Image Reminder" v. 1.0 is loaded by WordPress automatically on each request
117 characters long description:
When you choose the "Publish" button, a dialog box warns you if you've forgotten to set a featured image on the post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182215

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin