84% wp-instant-links

Code Review | WP Instant Links

WordPress plugin WP Instant Links scored84%from 54 tests.

About plugin

  • Plugin page: wp-instant-links
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-5.2
  • WordPress version: 6.3.1
  • First release: Feb 14, 2019
  • Latest release: Apr 28, 2019
  • Number of updates: 16
  • Update frequency: every 4.6 days
  • Top authors: kbat82 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,660 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.82ms] Passed 4 tests

An overview of server-side resources used by WP Instant Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.00 ▲0.54
Dashboard /wp-admin3.38 ▲0.0849.85 ▲4.30
Posts /wp-admin/edit.php3.49 ▲0.1452.46 ▲4.22
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.52 ▼15.74
Media Library /wp-admin/upload.php3.30 ▲0.0839.15 ▲3.70
WP Instant Links /wp-admin/admin.php?page=wp-instant-links3.2732.97

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

WP Instant Links: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9614.47 ▲0.052.30 ▲0.5743.41 ▼2.59
Dashboard /wp-admin2,209 ▲244.81 ▼0.09112.45 ▲8.6139.63 ▼2.09
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0138.29 ▼5.1135.23 ▼1.52
Add New Post /wp-admin/post-new.php1,535 ▲222.97 ▼0.26625.89 ▲9.6360.18 ▲11.73
Media Library /wp-admin/upload.php1,394 ▲34.19 ▼0.0397.62 ▼4.1242.77 ▼1.06
WP Instant Links /wp-admin/admin.php?page=wp-instant-links9262.0323.5026.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-instant-links/wp-instant-links.php
    • > /wp-content/plugins/wp-instant-links/class-admin-page.php
    • > /wp-content/plugins/wp-instant-links/class-wp-instant-links.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: prefetch, conversions, page speed, instant page, cdn...

wp-instant-links/wp-instant-links.php Passed 13 tests

The main PHP file in "WP Instant Links" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
130 characters long description:
Preload the next page the user is most likely to click to, resulting in super fast UX, and ultimately increasing your conversions.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin353 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP359108227
JavaScript1303105
JSON10021

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity9.50
▷ Minimum class complexity4.00
▷ Maximum class complexity15.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 were not PNG files found in your plugin