84% preclick

Code Review | Make your site load insanely fast with PreClick

WordPress plugin Make your site load insanely fast with PreClick scored84%from 54 tests.

About plugin

  • Plugin page: preclick
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.0.3
  • WordPress version: 6.3.1
  • First release: Feb 18, 2019
  • Latest release: Nov 1, 2022
  • Number of updates: 4
  • Update frequency: every 338.5 days
  • Top authors: treycopeland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.93ms] Passed 4 tests

Analyzing server-side resources used by Make your site load insanely fast with PreClick
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.00 ▼1.23
Dashboard /wp-admin3.31 ▲0.0046.59 ▼11.87
Posts /wp-admin/edit.php3.36 ▲0.0048.42 ▼3.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.26 ▼15.34
Media Library /wp-admin/upload.php3.23 ▲0.0043.04 ▲6.05

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Make your site load insanely fast with PreClick: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.35 ▲0.002.04 ▲0.4639.15 ▼1.62
Dashboard /wp-admin2,195 ▲155.61 ▼0.0692.05 ▲2.5541.70 ▼2.62
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0442.22 ▼2.4735.47 ▲2.67
Add New Post /wp-admin/post-new.php1,535 ▲718.36 ▼4.66677.13 ▼34.5169.35 ▲15.12
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.1598.57 ▼16.4448.07 ▼2.09

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

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

Smoke tests 75% from 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 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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preclick/preclick.php:11

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 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
6 plugin tags: optimize, speed, prerender, fast, performance...

preclick/preclick.php Passed 13 tests

"Make your site load insanely fast with PreClick" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
99 characters long description:
A plugin that makes your site extremely fast by prefetching the next URL that a user plans to click

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
Everything looks great! No dangerous files found in this plugin6 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1285
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

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