83% wp-disable

Code Review | Reduce HTTP Requests, Disable Emojis & Disable Embeds, Speedup WooCommerce

WordPress plugin Reduce HTTP Requests, Disable Emojis & Disable Embeds, Speedup WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: wp-disable
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.3
  • WordPress version: 6.3.1
  • First release: Mar 10, 2017
  • Latest release: Aug 9, 2020
  • Number of updates: 103
  • Update frequency: every 12.1 days
  • Top authors: pigeonhut (100%)

Code review

54 tests

User reviews

45 reviews

Install metrics

10,000+ active /300,303 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.52MB] [CPU: ▲8.13ms] Passed 4 tests

This is a short check of server-side resources used by Reduce HTTP Requests, Disable Emojis & Disable Embeds, Speedup WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5848.17 ▲10.13
Dashboard /wp-admin3.86 ▲0.5560.64 ▲11.47
Posts /wp-admin/edit.php3.91 ▲0.5556.53 ▲6.28
Add New Post /wp-admin/post-new.php6.38 ▲0.49106.58 ▲7.49
Media Library /wp-admin/upload.php3.72 ▲0.4943.76 ▲8.62

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
wpperformance_rev3a_combined_google_fonts_requests_number
wpperformance_rev3a_combined_font_awesome_requests_number

Browser metrics Passed 4 tests

Reduce HTTP Requests, Disable Emojis & Disable Embeds, Speedup WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.34 ▼0.182.03 ▲0.1747.47 ▲5.76
Dashboard /wp-admin2,211 ▲345.62 ▼0.2492.11 ▲1.5647.87 ▲4.29
Posts /wp-admin/edit.php2,113 ▲132.02 ▲0.0639.20 ▲3.9237.24 ▼5.35
Add New Post /wp-admin/post-new.php1,539 ▲1323.13 ▲0.31671.21 ▲7.7548.46 ▼12.30
Media Library /wp-admin/upload.php1,410 ▲74.15 ▼0.0798.42 ▼3.3047.03 ▲6.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-disable/lib/class-optimisationio-upgrader-skin.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Optimisationio_Dashboard' not found in wp-content/plugins/wp-disable/views/optimisationio-dashboard.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/wp-disable/lib/class-optimisationio-upgrader-skin.php:5
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/class-wp-upgrader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-disable/lib/class-optimisationio-upgrader-skin.php on line 3
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/wp-disable/lib/class-optimisationio-upgrader-skin.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #2 (Pingdom Report) image required
  • Screenshots: Add descriptions for screenshots #3, #5 in wp-disable/assets to your readme.txt
Please take inspiration from this readme.txt

wp-disable/wpperformance.php 92% from 13 tests

The main PHP script in "Reduce HTTP Requests, Disable Emojis & Disable Embeds, Speedup WooCommerce" version 1.6.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-disable.php" instead of "wpperformance.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,265 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP105811412,570
CSS116626907
JavaScript416525788

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity122.20
▷ Minimum class complexity1.00
▷ Maximum class complexity274.00
Average method complexity6.14
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods118
▷ Static methods3126.27%
▷ Public methods9076.27%
▷ Protected methods00.00%
▷ Private methods2823.73%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-support.png0.76KB0.76KB0.13%
images/logo-optimisation-line.png0.85KB1.07KB0.00%
images/logo-optimisation.png3.97KB3.99KB0.00%