89% eazy-http-headers

Code Review | Eazy HTTP Headers

WordPress plugin Eazy HTTP Headers scored89%from 54 tests.

About plugin

  • Plugin page: eazy-http-headers
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5+
  • WordPress version: 6.3.1
  • First release: Jul 14, 2016
  • Latest release: Jan 2, 2018
  • Number of updates: 8
  • Update frequency: every 67.1 days
  • Top authors: r0bsc0tt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,484 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Eazy HTTP Headers
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.50 ▼0.36
Dashboard /wp-admin3.32 ▼0.0246.51 ▼18.87
Posts /wp-admin/edit.php3.38 ▲0.0249.48 ▲2.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.86 ▼13.31
Media Library /wp-admin/upload.php3.25 ▲0.0234.29 ▲0.11

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Eazy HTTP Headers
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.061.50 ▼0.1639.11 ▼9.20
Dashboard /wp-admin2,192 ▲125.54 ▼0.1688.21 ▼1.0637.86 ▲0.02
Posts /wp-admin/edit.php2,100 ▼02.15 ▲0.1537.21 ▲1.1335.03 ▼5.75
Add New Post /wp-admin/post-new.php1,535 ▲718.63 ▼4.43629.83 ▼8.1268.00 ▲15.03
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.0495.68 ▲1.5841.56 ▲0.46

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

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tested up to: Invalid version format
You can take inspiration from this readme.txt

eazy-http-headers/eazy-http-headers.php 92% from 13 tests

The primary PHP file in "Eazy HTTP Headers" version 1.1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin71 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3213371

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
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
No PNG images were found in this plugin