84% fixes-for-mod-pagespeed

Code Review | Fixes for mod_pagespeed

WordPress plugin Fixes for mod_pagespeed scored84%from 54 tests.

About plugin

  • Plugin page: fixes-for-mod-pag...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0
  • WordPress version: 6.3.1
  • First release: Mar 16, 2017
  • Latest release: Jan 9, 2019
  • Number of updates: 7
  • Update frequency: every 94.3 days
  • Top authors: Dreamsorcerer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,253 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.03ms] Passed 4 tests

An overview of server-side resources used by Fixes for mod_pagespeed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.71 ▼10.20
Dashboard /wp-admin3.31 ▲0.0153.60 ▲3.42
Posts /wp-admin/edit.php3.36 ▲0.0047.61 ▼0.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.51 ▼7.95
Media Library /wp-admin/upload.php3.23 ▲0.0038.74 ▲2.96

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Fixes for mod_pagespeed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.68 ▼0.6343.36 ▼2.47
Dashboard /wp-admin2,195 ▲155.59 ▼0.0694.69 ▼5.7242.22 ▼1.76
Posts /wp-admin/edit.php2,103 ▼02.13 ▲0.1635.36 ▼0.1334.26 ▼0.77
Add New Post /wp-admin/post-new.php1,526 ▼223.63 ▲0.34664.98 ▲22.9562.49 ▲9.34
Media Library /wp-admin/upload.php1,400 ▼34.15 ▲0.0096.63 ▼6.0442.09 ▼2.24

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
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fixes-for-mod-pagespeed/pagespeed-fixes.php:20

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === fixes-for-mod-pagespeed === )
Please take inspiration from this readme.txt

fixes-for-mod-pagespeed/pagespeed-fixes.php 92% from 13 tests

The principal PHP file in "Fixes for mod_pagespeed" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fixes-for-mod-pagespeed.php" instead of "pagespeed-fixes.php")

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
Success! There were no dangerous files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111010

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.25
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin