90% if-modified-since

Code Review | If Modified Since

WordPress plugin If Modified Since scored90%from 54 tests.

About plugin

  • Plugin page: if-modified-since
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 6.3.1
  • First release: Aug 17, 2015
  • Latest release: Aug 17, 2015
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: ezraverheijen (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /4,890 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.01MB] [CPU: ▼9.96ms] Passed 4 tests

An overview of server-side resources used by If Modified Since
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.21 ▼5.41
Dashboard /wp-admin3.31 ▼0.0446.99 ▼17.14
Posts /wp-admin/edit.php3.36 ▲0.0052.12 ▲4.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.70 ▼6.25
Media Library /wp-admin/upload.php3.23 ▲0.0036.13 ▼11.04

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for If Modified Since
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.48 ▲0.112.05 ▲0.0840.51 ▼6.29
Dashboard /wp-admin2,206 ▲184.84 ▼1.02112.94 ▼3.7843.58 ▼3.47
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0064.17 ▲23.3253.28 ▲16.35
Add New Post /wp-admin/post-new.php1,548 ▲3118.36 ▲0.85685.25 ▲86.9869.68 ▲19.96
Media Library /wp-admin/upload.php1,388 ▼04.14 ▼0.05110.19 ▲11.2248.18 ▲5.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: if modifeid since, google, yahoo, bing, if-modified-since...

if-modified-since/if-modified-since.php Passed 13 tests

The primary PHP file in "If Modified Since" version 0.9 is used by WordPress to initiate all plugin functionality
66 characters long description:
Lightweight plugin to handle the `If Modifed Since` functionality.

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
Good job! No executable or dangerous file extensions detected88 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1232488

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.85
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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