84% specify-a-vary-accept-encoding-header

Code Review | Specify a Vary: Accept-Encoding Header

WordPress plugin Specify a Vary: Accept-Encoding Header scored84%from 54 tests.

About plugin

  • Plugin page: specify-a-vary-ac...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 13, 2018
  • Latest release: Apr 13, 2018
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: lithiumsixteen (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /4,680 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.14ms] Passed 4 tests

An overview of server-side resources used by Specify a Vary: Accept-Encoding Header
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.50 ▼6.00
Dashboard /wp-admin3.31 ▲0.0143.10 ▼8.92
Posts /wp-admin/edit.php3.36 ▲0.0148.97 ▲8.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.77 ▼0.25
Media Library /wp-admin/upload.php3.24 ▲0.0132.90 ▼1.38

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • You have illegally modified 1 file (0.97KB) outside of "wp-content/plugins/specify-a-vary-accept-encoding-header/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Specify a Vary: Accept-Encoding Header: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.58 ▼0.701.83 ▲0.0742.33 ▼1.89
Dashboard /wp-admin2,209 ▲274.83 ▼0.9896.98 ▼18.2038.92 ▼7.81
Posts /wp-admin/edit.php2,092 ▲62.06 ▲0.0340.63 ▲4.2237.02 ▲1.53
Add New Post /wp-admin/post-new.php1,529 ▲1518.37 ▲0.82605.18 ▼86.6759.46 ▲5.70
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0296.43 ▼12.4442.81 ▼0.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/specify-a-vary-accept-encoding-header/specify-a-vary-accept-encoding-header.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: encoding, header, security, speed, accept...

specify-a-vary-accept-encoding-header/specify-a-vary-accept-encoding-header.php Passed 13 tests

The main PHP file in "Specify a Vary: Accept-Encoding Header" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Fixes a "Vary: Accept-Encoding Header" message and boosts website performance.

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
Everything looks great! No dangerous files found in this plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132325

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin