90% instantclick

Code Review | InstantClick

WordPress plugin InstantClick scored90%from 54 tests.

About plugin

  • Plugin page: instantclick
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.1.1
  • WordPress version: 6.3.1
  • First release: May 19, 2014
  • Latest release: Jan 30, 2023
  • Number of updates: 11
  • Update frequency: every 289.0 days
  • Top authors: Mike_Cowobo (72.73%)ericakfranz (36.36%)

Code review

54 tests

User reviews

6 reviews

Install metrics

70+ active /5,653 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.07MB] [CPU: ▼10.46ms] Passed 4 tests

This is a short check of server-side resources used by InstantClick
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.45 ▼10.48
Dashboard /wp-admin3.39 ▲0.0448.89 ▼16.96
Posts /wp-admin/edit.php3.50 ▲0.1449.37 ▼0.80
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.38 ▼13.61
Media Library /wp-admin/upload.php3.31 ▲0.0836.33 ▲1.63
InstantClick /wp-admin/options-general.php?page=instantclick3.2831.36

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

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

Browser metrics Passed 4 tests

Checking browser requirements for InstantClick
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.22 ▼0.013.88 ▲2.0342.67 ▼7.08
Dashboard /wp-admin2,202 ▲225.64 ▲0.0987.65 ▼3.0539.33 ▼1.24
Posts /wp-admin/edit.php2,104 ▲12.04 ▲0.0238.66 ▲0.3438.88 ▲0.62
Add New Post /wp-admin/post-new.php1,531 ▲323.10 ▲0.05666.62 ▼14.1762.22 ▲13.64
Media Library /wp-admin/upload.php1,407 ▲74.21 ▲0.1296.77 ▼8.7844.34 ▼0.32
InstantClick /wp-admin/options-general.php?page=instantclick1,1722.3852.5143.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: links, performance, pagespeed, instantclick

instantclick/instantclick.php 92% from 13 tests

"InstantClick" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,136 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4125137550
PHP39143294
CSS14228247
Markdown117045

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.00
▷ Minimum class complexity12.00
▷ Maximum class complexity14.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods1339.39%
▷ Public methods2987.88%
▷ Protected methods13.03%
▷ Private methods39.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin