83% simple-caching

Code Review | Simple assets & files cache

WordPress plugin Simple assets & files cache scored83%from 54 tests.

About plugin

  • Plugin page: simple-caching
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.2.2
  • WordPress version: 6.3.1
  • First release: Aug 25, 2016
  • Latest release: Aug 25, 2016
  • Number of updates: 7
  • Update frequency: every 27.2 days
  • Top authors: tazotodua (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /560 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.18ms] Passed 4 tests

This is a short check of server-side resources used by Simple assets & files cache
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.52 ▼3.56
Dashboard /wp-admin3.35 ▲0.0447.78 ▲1.86
Posts /wp-admin/edit.php3.46 ▲0.1149.19 ▲3.54
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.20 ▼18.55
Media Library /wp-admin/upload.php3.27 ▲0.0436.92 ▲3.88
Simple Assets Cache /wp-admin/options-general.php?page=simple-file-cache-sfc3.2431.62

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

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • The plugin illegally modified 1 file (0.51KB) outside of "wp-content/plugins/simple-caching/" and "wp-content/uploads/"
    • (new file) .htaccess_BACKUP_00-44_05-10-2023O2boGPYW35Ia
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Simple assets & files cache
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.59 ▼0.701.83 ▼0.0839.31 ▼9.80
Dashboard /wp-admin2,210 ▲224.93 ▼0.97142.26 ▲36.0944.62 ▲2.06
Posts /wp-admin/edit.php2,093 ▲12.02 ▼0.0440.51 ▲2.8836.26 ▲1.65
Add New Post /wp-admin/post-new.php1,517 ▲317.62 ▲0.14644.54 ▼45.0451.99 ▼3.97
Media Library /wp-admin/upload.php1,386 ▲14.27 ▲0.07103.00 ▲1.0344.66 ▲2.37
Simple Assets Cache /wp-admin/options-general.php?page=simple-file-cache-sfc8292.0124.6330.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • 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 shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/simple-caching/index.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: simple, asset, images, caching, js...

simple-caching/index.php 85% from 13 tests

The main file in "Simple assets & files cache" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-caching.php" instead of "index.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected126 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12523126

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions22
▷ Named functions1986.36%
▷ Anonymous functions313.64%
Constants16
▷ Global constants16100.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
PNG images were not found in this plugin