73% speedien

Code Review | Core Web Vitals Booster

WordPress plugin Core Web Vitals Booster scored73%from 54 tests.

About plugin

  • Plugin page: speedien
  • Plugin version: 1.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Mar 26, 2021
  • Latest release: Sep 18, 2023
  • Number of updates: 42
  • Update frequency: every 21.6 days
  • Top authors: speedien (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /9,190 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.45ms] Passed 4 tests

This is a short check of server-side resources used by Core Web Vitals Booster
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.74 ▼1.61
Dashboard /wp-admin3.32 ▲0.0248.69 ▼16.40
Posts /wp-admin/edit.php3.37 ▲0.0243.81 ▼4.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.17 ▼10.95
Media Library /wp-admin/upload.php3.24 ▲0.0132.96 ▲3.02

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/speedien/" and "wp-content/uploads/"
    • (new file) wp-content/advanced-cache.php
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Core Web Vitals Booster
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.73 ▼0.681.82 ▼0.3845.31 ▼0.92
Dashboard /wp-admin2,225 ▲345.84 ▲0.9597.39 ▼4.1038.76 ▼2.35
Posts /wp-admin/edit.php2,105 ▲131.99 ▼0.0938.33 ▼1.5032.73 ▼4.20
Add New Post /wp-admin/post-new.php1,556 ▲3718.73 ▼4.50604.32 ▲4.8852.74 ▼1.54
Media Library /wp-admin/upload.php1,404 ▲134.30 ▲0.1192.03 ▼8.5541.48 ▼1.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/speedien/speedien.php+30
    Undefined variable: wp_config_file
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/speedien/speedien_cache.php:203
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/speedien/speedien_ui.php:90

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 90% 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 to be fixed:
  • Screenshots: Please a description for screenshot #3 in speedien/assets to your readme.txt
Please take inspiration from this readme.txt

speedien/speedien.php 85% from 13 tests

The main file in "Core Web Vitals Booster" v. 1.1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("//")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected464 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP49057464

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions20
▷ Named functions1890.00%
▷ Anonymous functions210.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin