10% cache-manifest

Code Review | Cache Manifest

WordPress plugin Cache Manifest scored10%from 54 tests.

About plugin

  • Plugin page: cache-manifest
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 30, 2013
  • Latest release: Oct 3, 2013
  • Number of updates: 8
  • Update frequency: every 4.3 days
  • Top authors: henrichro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,446 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/cache-manifest/cache_manifest_html5.php+143
    Only variables should be passed by reference

Server metrics [RAM: ▼0.66MB] [CPU: ▼16.84ms] Passed 4 tests

An overview of server-side resources used by Cache Manifest
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.54 ▼1.52
Dashboard /wp-admin3.33 ▲0.0348.28 ▲1.46
Posts /wp-admin/edit.php3.38 ▲0.0344.71 ▼6.23
Add New Post /wp-admin/post-new.php3.14 ▼2.7534.29 ▼59.25
Media Library /wp-admin/upload.php3.26 ▲0.0334.22 ▼0.34

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

How much does this plugin use your filesystem and database?
These are issues you should consider
  • You have illegally modified 2 files (13.53KB) outside of "wp-content/plugins/cache-manifest/" and "wp-content/uploads/"
    • (new file) wp-content/themes/twentytwentyone/manifest.html
    • (new file) wp-content/themes/twentytwentyone/cache.manifest
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Cache Manifest
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16713.68 ▼0.838.39 ▲6.3246.61 ▲1.61
Dashboard /wp-admin2,209 ▲214.85 ▼0.02102.40 ▼1.8941.41 ▲2.10
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0235.30 ▼6.4832.73 ▼2.54
Add New Post /wp-admin/post-new.php1,533 ▲1423.16 ▼0.11614.40 ▼61.3552.77 ▼12.91
Media Library /wp-admin/upload.php1,385 ▼04.24 ▲0.0195.59 ▼2.8142.49 ▼3.79

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cache-manifest/cache_manifest_html5.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Fixing the hungarian letters with accents and symbols in the permalinks.)
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

cache-manifest/cache_manifest_html5.php 92% from 13 tests

The main PHP script in "Cache Manifest" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cache-manifest.php" instead of "cache_manifest_html5.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
Success! There were no dangerous files found in this plugin159 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11920121
JavaScript14038

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.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 are no PNG files in this plugin