90% wp-fastclick

Code Review | WP FastClick

WordPress plugin WP FastClick scored90%from 54 tests.

About plugin

  • Plugin page: wp-fastclick
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Oct 3, 2016
  • Latest release: Mar 22, 2017
  • Number of updates: 13
  • Update frequency: every 13.2 days
  • Top authors: deremohan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,928 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
Installer ran successfully

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

Server-side resources used by WP FastClick
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.24 ▼7.37
Dashboard /wp-admin3.32 ▲0.0144.72 ▼4.31
Posts /wp-admin/edit.php3.37 ▲0.0149.97 ▲5.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.18 ▲7.52
Media Library /wp-admin/upload.php3.24 ▲0.0132.33 ▼3.98

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP FastClick
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲11013.74 ▼0.615.56 ▲3.4141.91 ▼1.38
Dashboard /wp-admin2,206 ▲184.82 ▼1.06102.38 ▼17.9939.65 ▼3.24
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0340.90 ▲3.3335.82 ▲0.91
Add New Post /wp-admin/post-new.php1,542 ▲918.44 ▼4.89628.31 ▼70.7749.95 ▼7.98
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0298.22 ▼15.3740.69 ▼4.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: click, tap, mobile, touch, browsers...

wp-fastclick/wp-fastclick.php Passed 13 tests

The main PHP file in "WP FastClick" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
WP FastClick plugin remove click delays on browsers with touch UIs.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected507 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4171283433
PHP2189441
JSON10033

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.10
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions1
▷ Named functions1100.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