80% uncache-script

Code Review | Uncache Script

WordPress plugin Uncache Script scored80%from 54 tests.

About plugin

  • Plugin page: uncache-script
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.3-4.3
  • WordPress version: 6.3.1
  • First release: Apr 17, 2015
  • Latest release: Aug 20, 2015
  • Number of updates: 18
  • Update frequency: every 7.0 days
  • Top authors: Todi.Adiatmo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /5,640 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.77ms] Passed 4 tests

This is a short check of server-side resources used by Uncache Script
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.12 ▼1.67
Dashboard /wp-admin3.31 ▼0.0451.30 ▼11.00
Posts /wp-admin/edit.php3.36 ▲0.0047.29 ▼3.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.57 ▼9.89
Media Library /wp-admin/upload.php3.23 ▲0.0035.85 ▼2.39

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Uncache Script
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.78 ▲0.421.85 ▼0.1544.11 ▲2.13
Dashboard /wp-admin2,206 ▲184.82 ▼1.07108.38 ▼4.8038.31 ▼4.63
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0236.28 ▲0.3334.19 ▼1.28
Add New Post /wp-admin/post-new.php1,533 ▲1423.20 ▼0.23640.41 ▲19.5861.81 ▲10.23
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.0498.04 ▼2.2943.32 ▼4.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin has failed uninstalling correctly, leaving 9 files (0.26MB) in the plugin directory
    • (new file) assets/simplegrid.css
    • (new file) assets/us-admin.css
    • (new file) theme-options.php
    • (new file) uncache-script.php
    • (new file) readme.txt
    • (new file) assets/uikit.js
    • (new file) assets/us-admin.js
    • (new file) assets/uikit.css
    • (new file) us-theme-options.php
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #1 in uncache-script/assets to your readme.txt
The official readme.txt is a good inspiration

uncache-script/uncache-script.php Passed 13 tests

The principal PHP file in "Uncache Script" v. 1.2.0 is loaded by WordPress automatically on each request
46 characters long description:
Uncache your script / css after plugin update.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin8,482 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS3551,9086,127
JavaScript19871042,118
PHP310540237

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin