84% lsd-simple-cache

Code Review | LSD Simple Cache

WordPress plugin LSD Simple Cache scored84%from 54 tests.

About plugin

  • Plugin page: lsd-simple-cache
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2014
  • Latest release: Nov 28, 2014
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: BasMatthee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,223 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by LSD Simple Cache
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0533.72 ▼3.71
Dashboard /wp-admin3.32 ▼0.0344.55 ▼17.39
Posts /wp-admin/edit.php3.37 ▲0.0146.61 ▲0.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.10 ▼22.16
Media Library /wp-admin/upload.php3.24 ▲0.0133.37 ▼4.75

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for LSD Simple Cache
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.17 ▼1.421.74 ▼0.2440.05 ▼3.93
Dashboard /wp-admin2,209 ▲214.84 ▼0.2397.69 ▼9.9938.14 ▼3.60
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.79 ▲2.0035.52 ▼1.40
Add New Post /wp-admin/post-new.php1,533 ▲523.02 ▲4.70654.68 ▼1.1353.70 ▼5.16
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0396.09 ▲0.4140.21 ▼4.61

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/lsd-simple-cache/lsd-simple-cache.php:66

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: tweak, simple, speed, html, performance...

lsd-simple-cache/lsd-simple-cache.php Passed 13 tests

"LSD Simple Cache" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
Cache the webpages to reduce serverload and database-requests. Speeds up your Wordpress website.

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
Everything looks great! No dangerous files found in this plugin78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1661378

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic 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%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.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