83% wpbenchmark

Code Review | WordPress Hosting Benchmark tool

WordPress plugin WordPress Hosting Benchmark tool scored83%from 54 tests.

About plugin

  • Plugin page: wpbenchmark
  • Plugin version: 1.3.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 9, 2019
  • Latest release: Aug 18, 2023
  • Number of updates: 36
  • Update frequency: every 43.4 days
  • Top authors: anton.aleksandrov (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

3,000+ active /31,142 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.06MB] [CPU: ▼0.35ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Hosting Benchmark tool
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.15 ▲4.16
Dashboard /wp-admin3.36 ▲0.0643.19 ▼4.63
Posts /wp-admin/edit.php3.42 ▲0.0645.49 ▼3.21
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.57 ▲3.46
Media Library /wp-admin/upload.php3.29 ▲0.0634.55 ▲2.99
WP Benchmark tool /wp-admin/tools.php?page=wp_benchmark_io3.2532.55

Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
wp-benchmark-io-history
widget_theysaidso_widget
wp-benchmark-io-settings
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Hosting Benchmark tool
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.021.81 ▲0.2743.06 ▲1.00
Dashboard /wp-admin2,202 ▲225.64 ▲0.1082.18 ▼4.7440.85 ▲0.88
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0435.90 ▼1.8038.95 ▲4.73
Add New Post /wp-admin/post-new.php1,529 ▲323.28 ▲0.24630.00 ▼36.8553.07 ▼0.68
Media Library /wp-admin/upload.php1,407 ▲44.22 ▲0.0395.75 ▲2.9741.44 ▼3.02
WP Benchmark tool /wp-admin/tools.php?page=wp_benchmark_io9231.9921.7648.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • wp-benchmark-io-settings
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • wp-benchmark-io-history
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 return non-empty strings:
    • > /wp-content/plugins/wpbenchmark/wp-benchmark-io.php
    • > /wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

wpbenchmark/wp-benchmark-io.php 85% from 13 tests

"WordPress Hosting Benchmark tool" version 1.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Name the main plugin file the same as the plugin slug ("wpbenchmark.php" instead of "wp-benchmark-io.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
Everything looks great! No dangerous files found in this plugin1,669 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26861641,669

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity103.00
▷ Minimum class complexity39.00
▷ Maximum class complexity167.00
Average method complexity5.08
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods50
▷ Static methods612.00%
▷ Public methods50100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin