10% wp-hash-filename

Code Review | WP Faster

WordPress plugin WP Faster scored10%from 54 tests.

About plugin

  • Plugin page: wp-hash-filename
  • Plugin version: 1.2
  • PHP compatiblity: 5.3.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Oct 23, 2014
  • Latest release: Apr 9, 2020
  • Number of updates: 11
  • Update frequency: every 181.4 days
  • Top authors: 0 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /2,158 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/wp-hash-filename/wp-faster.php+792
    Undefined variable: wp_faster_options

Server metrics [RAM: ▼1.65MB] [CPU: ▼58.20ms] Passed 4 tests

Analyzing server-side resources used by WP Faster
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.35 ▼1.125.20 ▼37.73
Dashboard /wp-admin2.37 ▼0.945.91 ▼48.19
Posts /wp-admin/edit.php2.37 ▼0.996.12 ▼46.41
Add New Post /wp-admin/post-new.php2.37 ▼3.526.30 ▼100.46
Media Library /wp-admin/upload.php2.37 ▼0.878.48 ▼29.39
Add New /wp-admin/link-add.php2.376.12
All Links /wp-admin/link-manager.php2.386.74
WP Faster /wp-admin/options-general.php?page=wp-faster2.378.01
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category2.376.47

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_links
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Faster: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,492 ▼26914.27 ▼0.080.97 ▼0.6640.52 ▼2.84
Dashboard /wp-admin2,073 ▼1045.52 ▼0.0883.10 ▼6.6237.85 ▼4.57
Posts /wp-admin/edit.php1,990 ▼1102.02 ▲0.0539.81 ▲2.9531.24 ▼2.58
Add New Post /wp-admin/post-new.php2,939 ▲1,4117.55 ▼15.58199.59 ▼496.9982.80 ▲26.57
Media Library /wp-admin/upload.php1,331 ▼724.20 ▼0.0197.17 ▼22.7939.95 ▼9.44
Add New /wp-admin/link-add.php1,5722.5553.7131.27
All Links /wp-admin/link-manager.php9902.0225.0837.57
WP Faster /wp-admin/options-general.php?page=wp-faster9492.1222.9056.36
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,2292.1126.1626.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/wp-hash-filename/wp-faster.php+792
    Undefined variable: wp_faster_options
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_links
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 140 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
    • > Notice in wp-content/plugins/wp-hash-filename/wp-faster.php+1110
    Undefined variable: wp_faster_options
  • 140 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
    • > Notice in wp-content/plugins/wp-hash-filename/wp-faster.php+1110
    Trying to access array offset on value of type null
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
    • > User notice in wp-includes/functions.php+5905
    Function wp_deregister_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 wp-block-library handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
    • > Deprecated in wp-content/plugins/wp-hash-filename/wp-faster.php+1113
    Function create_function() is deprecated

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were not plugin tags detected

wp-hash-filename/wp-faster.php 77% from 13 tests

The main PHP script in "WP Faster" version 1.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-hash-filename.php" instead of "wp-faster.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: The domain path folder was not found ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected883 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP117261883

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity106.00
▷ Minimum class complexity106.00
▷ Maximum class complexity106.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions1368.42%
▷ Anonymous functions631.58%
Constants2
▷ Global constants2100.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
No PNG files were detected