84% lc-disable-cdn

Code Review | LC Disable CDN

WordPress plugin LC Disable CDN scored84%from 54 tests.

About plugin

  • Plugin page: lc-disable-cdn
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2018
  • Latest release: Aug 11, 2022
  • Number of updates: 5
  • Update frequency: every 304.0 days
  • Top authors: jamesdlow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,438 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by LC Disable CDN
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0141.71 ▼2.28
Dashboard /wp-admin3.35 ▲0.0146.31 ▼7.39
Posts /wp-admin/edit.php3.40 ▲0.0149.16 ▼2.30
Add New Post /wp-admin/post-new.php5.94 ▲0.0191.05 ▼9.52
Media Library /wp-admin/upload.php3.28 ▲0.0152.58 ▲12.48

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
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by LC Disable CDN
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.31 ▲0.171.70 ▲0.1643.91 ▲2.04
Dashboard /wp-admin2,198 ▲215.61 ▼0.0596.80 ▲2.6642.60 ▼1.79
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0435.56 ▼11.4133.60 ▼6.96
Add New Post /wp-admin/post-new.php1,531 ▲223.14 ▲0.05657.88 ▲0.1968.86 ▲14.36
Media Library /wp-admin/upload.php1,400 ▲34.16 ▲0.00100.21 ▼5.5943.99 ▼4.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lc-disable-cdn/lc-disable-cdn.php:13

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: js, javascript, redirect

lc-disable-cdn/lc-disable-cdn.php Passed 13 tests

"LC Disable CDN" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
50 characters long description:
Disable CDN rewriting for the Live Composer Editor

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
No dangerous file extensions were detected35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111935

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code1.00
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.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 files were detected