84% fast-speed-index

Code Review | Fast Speed Index

WordPress plugin Fast Speed Index scored 84% from 54 tests.

About plugin

  • Plugin page: fast-speed-index
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.0
  • WordPress version: 6.3.1
  • First release: Nov 5, 2018
  • Latest release: Dec 8, 2018
  • Number of updates: 7
  • Update frequency: every 4.7 days
  • Top authors: ryokurosu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 3,306 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.05MB] [CPU: ▼3.38ms] Passed 4 tests

Server-side resources used by Fast Speed Index
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.86 ▲1.74
Dashboard /wp-admin3.35 ▲0.0546.12 ▼5.16
Posts /wp-admin/edit.php3.47 ▲0.1148.66 ▲0.74
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.17 ▼10.85
Media Library /wp-admin/upload.php3.28 ▲0.0536.35 ▲3.44

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fast Speed Index
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.501.92 ▼0.1936.14 ▼12.48
Dashboard /wp-admin2,206 ▲155.79 ▼0.11101.97 ▼1.1839.21 ▲2.18
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0437.40 ▲3.7237.61 ▲3.40
Add New Post /wp-admin/post-new.php1,411 ▼10917.92 ▼5.51634.31 ▼23.0351.71 ▲5.81
Media Library /wp-admin/upload.php1,382 ▼34.21 ▼0.0894.15 ▼1.2141.19 ▼2.78

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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_action() in wp-content/plugins/fast-speed-index/fast-speed-index.php:74

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: webhooks, ping, index, websub, puhsubhubbub

fast-speed-index/fast-speed-index.php Passed 13 tests

The main PHP file in "Fast Speed Index" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
This is a better way to launch your website when your blog is updated.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin278 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP457137219
PO File1121259

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity14.50
▷ Minimum class complexity14.00
▷ Maximum class complexity15.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods12100.00%
▷ Public methods12100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin