10% vihv-speed-up

Code Review | Vihv Speed Up

WordPress plugin Vihv Speed Up scored 10% from 54 tests.

About plugin

  • Plugin page: vihv-speed-up
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.2
  • WordPress version: 5.9.2
  • First release: Sep 17, 2012
  • Latest release: Jul 16, 2013
  • Number of updates: 6
  • Update frequency: every 50.5 days
  • Top authors: Vihv (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 7,186 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method TVihvSpeedUp::activate() should not be called statically

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

An overview of server-side resources used by Vihv Speed Up
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0261.04 ▲3.17
Dashboard /wp-admin3.42 ▲0.0136.23 ▼5.20
Posts /wp-admin/edit.php3.66 ▲0.0140.55 ▼5.81
Add New Post /wp-admin/post-new.php6.89 ▼0.08100.78 ▼1,194.65
Media Library /wp-admin/upload.php3.31 ▲0.0127.74 ▼1.82

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Vihv Speed Up
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.82 ▲0.006.72 ▲0.432.83 ▲0.24
Dashboard /wp-admin2,888 ▲276.11 ▼0.16125.68 ▼8.76168.26 ▲7.23
Posts /wp-admin/edit.php2,694 ▲63.24 ▲0.0064.01 ▲0.51137.86 ▼0.69
Add New Post /wp-admin/post-new.php1,668 ▲718.20 ▼2.16394.17 ▼18.16155.93 ▲0.38
Media Library /wp-admin/upload.php1,701 ▲35.53 ▲0.04134.78 ▼6.09185.28 ▼1.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method TVihvSpeedUp::deactivate() should not be called statically

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/vihv-speed-up/vihv-speed-up.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

vihv-speed-up/vihv-speed-up.php Passed 13 tests

The entry point to "Vihv Speed Up" version 2.5 is a PHP file that has certain tags in its header comment area
106 characters long description:
Increase speed of you site by creating additional database indexes. No configuration needed, just install.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191234

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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
No PNG images were found in this plugin