74% remove-featured-image

Code Review | Remove Featured Image

WordPress plugin Remove Featured Image scored74%from 54 tests.

About plugin

  • Plugin page: remove-featured-i...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 6.3.1
  • First release: May 29, 2017
  • Latest release: Jan 12, 2018
  • Number of updates: 12
  • Update frequency: every 19.1 days
  • Top authors: chatthasumit (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /25,845 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼37.34ms] Passed 4 tests

This is a short check of server-side resources used by Remove Featured Image
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.08 ▼8.27
Dashboard /wp-admin3.03 ▼0.3223.31 ▼44.34
Posts /wp-admin/edit.php3.03 ▼0.3325.66 ▼27.61
Add New Post /wp-admin/post-new.php3.03 ▼2.8626.00 ▼69.15
Media Library /wp-admin/upload.php3.03 ▼0.2027.72 ▼8.02

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Remove Featured Image
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.34 ▼0.262.02 ▲0.2742.39 ▲3.79
Dashboard /wp-admin2,205 ▲285.50 ▼0.1287.04 ▼7.7040.19 ▼8.11
Posts /wp-admin/edit.php2,116 ▲191.98 ▲0.0134.86 ▼4.9636.46 ▼1.21
Add New Post /wp-admin/post-new.php1,539 ▲1323.26 ▼0.01660.07 ▼73.1152.09 ▼4.43
Media Library /wp-admin/upload.php1,419 ▲194.18 ▲0.0397.55 ▼3.7445.50 ▼6.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function map_meta_cap was called incorrectly. When checking for the edit_page capability, you must always check it against a specific page. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/remove-featured-image/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: remove featured image, hide featured image, custom post type, post thumbnail, image...

remove-featured-image/index.php 85% from 13 tests

The main PHP script in "Remove Featured Image" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("remove-featured-image.php" instead of "index.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin126 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31012126

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 files were detected