73% jinx-fast-cache

Code Review | Jinx Fast-Cache

WordPress plugin Jinx Fast-Cache scored73%from 54 tests.

About plugin

  • Plugin page: jinx-fast-cache
  • Plugin version: 0.7.5
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Feb 10, 2022
  • Latest release: Nov 3, 2023
  • Number of updates: 26
  • Update frequency: every 24.3 days
  • Top authors: Lugat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /612 total downloads

Benchmarks

Plugin footprint 65% 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.31MB] [CPU: ▼1.46ms] Passed 4 tests

Server-side resources used by Jinx Fast-Cache
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4740.04 ▲1.72
Dashboard /wp-admin3.66 ▲0.3147.13 ▼12.84
Posts /wp-admin/edit.php3.71 ▲0.3649.52 ▲6.24
Add New Post /wp-admin/post-new.php6.18 ▲0.2998.91 ▲1.05
Media Library /wp-admin/upload.php3.52 ▲0.2937.84 ▲4.24

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • The plugin illegally modified 3 files (30.22KB) outside of "wp-content/plugins/jinx-fast-cache/" and "wp-content/uploads/"
    • (modified) .htaccess
    • (new file) wp-content/jinx-fast-cache/wp.com/index.json
    • (new file) wp-content/jinx-fast-cache/wp.com/index.html
Filesystem: 11 new files
Database: 2 new tables, 7 new options
New tables
wp_jinx_fast_cache_tags
wp_jinx_fast_cache_expiry
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
jinx_fast_cache_queue
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jinx Fast-Cache
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,718 ▼2914.32 ▼0.031.58 ▲0.1337.97 ▲1.46
Dashboard /wp-admin2,212 ▲315.58 ▼0.1391.69 ▼22.4246.96 ▲3.10
Posts /wp-admin/edit.php2,158 ▲551.98 ▼0.0339.74 ▼0.7849.84 ▲17.72
Add New Post /wp-admin/post-new.php1,540 ▲1223.56 ▲0.23675.15 ▲20.9456.15 ▼3.75
Media Library /wp-admin/upload.php1,411 ▲84.21 ▲0.0699.26 ▲2.8744.16 ▲1.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_jinx_fast_cache_tags
    • wp_jinx_fast_cache_expiry
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • jinx_fast_cache_queue
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/jinx-fast-cache/index.php on line 23
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/jinx-fast-cache/index.php on line 23
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/jinx-fast-cache/index.php on line 23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: fullpage, filecache, htaccess, files, html...

jinx-fast-cache/index.php 85% from 13 tests

The principal PHP file in "Jinx Fast-Cache" v. 0.7.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jinx-fast-cache.php" instead of "index.php")

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 plugin935 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9518367921
JavaScript12014

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.75
▷ Minimum class complexity3.00
▷ Maximum class complexity53.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes8100.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods66
▷ Static methods66100.00%
▷ Public methods4872.73%
▷ Protected methods1827.27%
▷ Private methods00.00%
Functions19
▷ Named functions00.00%
▷ Anonymous functions19100.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
There were not PNG files found in your plugin