89% remove-wp-overhead

Code Review | Remove Wordpress Overhead

WordPress plugin Remove Wordpress Overhead scored89%from 54 tests.

About plugin

  • Plugin page: remove-wp-overhead
  • Plugin version: 1.5.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2016
  • Latest release: Aug 9, 2023
  • Number of updates: 34
  • Update frequency: every 73.9 days
  • Top authors: omnisite (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /19,047 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 gracefully, with no errors

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.01ms] Passed 4 tests

A check of server-side resources used by Remove Wordpress Overhead
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2240.17 ▼2.41
Dashboard /wp-admin3.54 ▲0.1956.19 ▼8.16
Posts /wp-admin/edit.php3.66 ▲0.3048.08 ▼1.00
Add New Post /wp-admin/post-new.php6.14 ▲0.2582.00 ▼4.45
Media Library /wp-admin/upload.php3.47 ▲0.2338.08 ▲4.89
Remove WP Overhead /wp-admin/options-general.php?page=remove_wordpress_overhead_settings3.4533.98

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
remove_wordpress_overhead_version
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove Wordpress Overhead
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.21 ▼1.441.65 ▼0.0442.94 ▼8.48
Dashboard /wp-admin2,214 ▲265.85 ▲0.01108.22 ▼6.8941.32 ▼1.70
Posts /wp-admin/edit.php2,097 ▲82.04 ▲0.0539.58 ▲4.9334.39 ▲1.52
Add New Post /wp-admin/post-new.php1,521 ▲417.39 ▼0.43667.29 ▲26.2455.47 ▲9.21
Media Library /wp-admin/upload.php1,390 ▼14.24 ▲0.0894.61 ▼2.7843.55 ▲2.61
Remove WP Overhead /wp-admin/options-general.php?page=remove_wordpress_overhead_settings1,1582.0723.4940.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • remove_wordpress_overhead_version
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1: settings screen) image missing
  • Tags: Please reduce the number of tags, currently 28 tag instead of maximum 10
Please take inspiration from this readme.txt

remove-wp-overhead/remove-wordpress-overhead.php 77% from 13 tests

Analyzing the main PHP file in "Remove Wordpress Overhead" version 1.5.5.2
Please make the necessary changes and 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
  • Main file name: The principal plugin file should be the same as the plugin slug ("remove-wp-overhead.php" instead of "remove-wordpress-overhead.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "6.0")

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
Everything looks great! No dangerous files found in this plugin1,023 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP8234489830
CSS2200118
JavaScript415664
JSON10011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity28.00
▷ Minimum class complexity5.00
▷ Maximum class complexity58.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods4593.75%
▷ Protected methods00.00%
▷ Private methods36.25%
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
1 PNG file occupies 0.34MB with 0.23MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png349.38KB109.11KB▼ 68.77%