84% preload-fullpage-cache

Code Review | Preload Fullpage Cache

WordPress plugin Preload Fullpage Cache scored84%from 54 tests.

About plugin

  • Plugin page: preload-fullpage-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 13, 2016
  • Latest release: Aug 15, 2023
  • Number of updates: 33
  • Update frequency: every 77.5 days
  • Top authors: pothi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,725 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Preload Fullpage Cache
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.13 ▼12.50
Dashboard /wp-admin3.32 ▼0.0344.72 ▼17.09
Posts /wp-admin/edit.php3.37 ▲0.0148.69 ▼0.52
Add New Post /wp-admin/post-new.php5.92 ▲0.03185.63 ▲96.28
Media Library /wp-admin/upload.php3.24 ▲0.0134.65 ▼0.52

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Preload Fullpage Cache
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.48 ▲0.081.69 ▼1.0439.35 ▼11.03
Dashboard /wp-admin2,206 ▲154.88 ▼1.02109.80 ▲10.3541.76 ▲2.95
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0739.45 ▲0.2134.40 ▼1.60
Add New Post /wp-admin/post-new.php1,533 ▼1223.00 ▲4.66582.62 ▼17.0452.00 ▲2.04
Media Library /wp-admin/upload.php1,388 ▼04.29 ▲0.0895.45 ▼9.1344.02 ▼5.48

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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
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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/preload-fullpage-cache/preload-fullpage-cache.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: You can take inspiration from this readme.txt

preload-fullpage-cache/preload-fullpage-cache.php Passed 13 tests

The main PHP file in "Preload Fullpage Cache" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Preloads any new or updated post into fullpage cache.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin37 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171637

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin