84% pushstate

Code Review | HTML5 pushState

WordPress plugin HTML5 pushState scored84%from 54 tests.

About plugin

  • Plugin page: pushstate
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2013
  • Latest release: Feb 16, 2013
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: lontongcorp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,993 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.68ms] Passed 4 tests

Analyzing server-side resources used by HTML5 pushState
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.44 ▲1.72
Dashboard /wp-admin3.34 ▲0.0449.25 ▼2.27
Posts /wp-admin/edit.php3.39 ▲0.0451.05 ▼2.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.01 ▼10.16
Media Library /wp-admin/upload.php3.27 ▲0.0438.31 ▼0.18
HTML5 pushState /wp-admin/options-general.php?page=pushstate3.2336.96

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by HTML5 pushState
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,120 ▲37413.95 ▼0.4713.94 ▲12.1740.91 ▼2.62
Dashboard /wp-admin2,221 ▲334.88 ▼0.99106.45 ▲0.9639.62 ▼6.46
Posts /wp-admin/edit.php2,118 ▲262.30 ▲0.2536.15 ▼1.4931.73 ▼5.85
Add New Post /wp-admin/post-new.php1,523 ▼623.14 ▼0.06622.61 ▼75.3260.76 ▲5.71
Media Library /wp-admin/upload.php1,404 ▲164.26 ▲0.0698.42 ▼15.3347.41 ▼0.51
HTML5 pushState /wp-admin/options-general.php?page=pushstate9071.8631.4130.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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 everything seems fine, this is not 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pushstate/pushstate.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === pushstate === )
You can take inspiration from this readme.txt

pushstate/pushstate.php 92% from 13 tests

The principal PHP file in "HTML5 pushState" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 218 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin144 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13344140
JavaScript3084

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin