77% fast-wp-speed

Code Review | Fast WP Speed

WordPress plugin Fast WP Speed scored77%from 54 tests.

About plugin

  • Plugin page: fast-wp-speed
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.2
  • WordPress version: 6.3.1
  • First release: Aug 31, 2021
  • Latest release: Sep 20, 2022
  • Number of updates: 7
  • Update frequency: every 55.0 days
  • Top authors: fastwpspeed (71.43%)frohadpro (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /8,404 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Fast WP Speed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.49 ▼2.67
Dashboard /wp-admin3.31 ▲0.0151.48 ▲1.21
Posts /wp-admin/edit.php3.36 ▲0.0049.08 ▲2.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.51 ▼13.17
Media Library /wp-admin/upload.php3.23 ▲0.0034.47 ▲1.04

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 108 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Fast WP Speed: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.14 ▼1.244.99 ▲3.1243.31 ▲0.99
Dashboard /wp-admin2,218 ▲305.88 ▲0.97104.54 ▼13.4637.22 ▼8.81
Posts /wp-admin/edit.php2,101 ▲92.01 ▲0.0036.05 ▼0.9734.18 ▼1.13
Add New Post /wp-admin/post-new.php1,529 ▲1223.21 ▲5.52643.55 ▲3.8546.20 ▼6.85
Media Library /wp-admin/upload.php1,397 ▲94.25 ▲0.0591.99 ▼6.3442.18 ▼2.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/fast-wp-speed/section-mobile.php
    • > /wp-content/plugins/fast-wp-speed/header.php
    • > /wp-content/plugins/fast-wp-speed/form.php
    • > /wp-content/plugins/fast-wp-speed/index.php
    • > /wp-content/plugins/fast-wp-speed/footer.php
    • > /wp-content/plugins/fast-wp-speed/section-desktop.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: fwps_google_api in wp-content/plugins/fast-wp-speed/footer.php on line 2

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: first input delay, largest contentful paint, cumulative layout shift, core web vitals, wp rocket

fast-wp-speed/fastwpspeed.php 62% from 13 tests

The main file in "Fast WP Speed" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.2.4" instead of "7.2")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fast-wp-speed.php" instead of "fastwpspeed.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin77,352 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
CSS3311,80220342,993
JavaScript127,2525,05924,309
SVG11009,649
PHP84424401

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/wpfast_screenshot.png176.77KB67.35KB▼ 61.90%