10% wp-google-speed-insight

Code Review | Performance Check

WordPress plugin Performance Check scored 10% from 54 tests.

About plugin

  • Plugin page: wp-google-speed-i...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.3
  • WordPress version: 6.3.1
  • First release: Aug 1, 2015
  • Latest release: Aug 6, 2015
  • Number of updates: 29
  • Update frequency: every 0.2 days
  • Top authors: itlboy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,227 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.91MB] [CPU: ▼53.20ms] Passed 4 tests

Analyzing server-side resources used by Performance Check
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.97 ▼35.54
Dashboard /wp-admin2.09 ▼1.216.52 ▼46.55
Posts /wp-admin/edit.php2.09 ▼1.266.45 ▼46.21
Add New Post /wp-admin/post-new.php2.09 ▼3.796.51 ▼84.49
Media Library /wp-admin/upload.php2.09 ▼1.136.19 ▼33.05

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Performance Check: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,072 ▲26113.87 ▲0.649.04 ▲6.9434.61 ▼14.52
Dashboard /wp-admin2,304 ▲984.99 ▼0.9295.21 ▼6.2744.72 ▼2.88
Posts /wp-admin/edit.php2,194 ▲1052.53 ▲0.5631.26 ▼8.6837.40 ▼1.64
Add New Post /wp-admin/post-new.php1,772 ▲25822.50 ▲4.85750.93 ▲70.53115.53 ▲59.96
Media Library /wp-admin/upload.php1,487 ▲994.43 ▲0.2590.54 ▼15.3641.54 ▼1.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please take a closer look at the following
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-google-speed-insight/auto-load/SSBasePlugin.php
    • > /wp-content/plugins/wp-google-speed-insight/speed-insight.php
    • > /wp-content/plugins/wp-google-speed-insight/auto-load/HttpRequest.php
    • > /wp-content/plugins/wp-google-speed-insight/auto-load/SpeedInsight.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/wp-google-speed-insight/index.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: better speed, google speed insight, simple, performance

wp-google-speed-insight/speed-insight.php 92% from 13 tests

The entry point to "Performance Check" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-google-speed-insight.php" instead of "speed-insight.php")

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
No dangerous file extensions were detected299 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55973269
CSS11415
JavaScript12215

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.50
▷ Minimum class complexity4.00
▷ Maximum class complexity8.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods30
▷ Static methods310.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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 files were detected