79% webpage-speed-test

Code Review | Webpage Speed Test

WordPress plugin Webpage Speed Test scored79%from 54 tests.

About plugin

  • Plugin page: webpage-speed-test
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 27, 2017
  • Latest release: Mar 27, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: wholesalesms (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /570 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼1.94MB] [CPU: ▼57.88ms] Passed 4 tests

A check of server-side resources used by Webpage Speed Test
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.28 ▼35.80
Dashboard /wp-admin2.06 ▼1.246.45 ▼52.38
Posts /wp-admin/edit.php2.07 ▼1.295.58 ▼47.40
Add New Post /wp-admin/post-new.php2.06 ▼3.827.52 ▼95.93
Media Library /wp-admin/upload.php2.06 ▼1.165.78 ▼29.93

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Webpage Speed Test
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.23 ▼0.131.76 ▲0.1448.85 ▲3.99
Dashboard /wp-admin2,199 ▲225.57 ▼0.1087.58 ▼11.2882.46 ▲37.46
Posts /wp-admin/edit.php2,122 ▲222.01 ▲0.0235.13 ▼1.7832.24 ▼8.10
Add New Post /wp-admin/post-new.php1,543 ▲1723.07 ▼0.39756.70 ▲53.0960.61 ▲9.80
Media Library /wp-admin/upload.php1,419 ▲224.20 ▼0.0098.42 ▼23.0164.71 ▲16.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the cl-chanimal-styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Plugin view with admin panel), #2 (Checking website speed performance)
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

webpage-speed-test/index.php 92% from 13 tests

The main PHP file in "Webpage Speed Test" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("webpage-speed-test.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,051 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP213416544
CSS21610507

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.35
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

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.26MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png68.23KB17.97KB▼ 73.66%
assets/launch.png1.20KB1.29KB0.00%
screenshot-2.png195.63KB54.24KB▼ 72.27%
assets/check-mark-2-xxl.png0.64KB0.80KB0.00%