89% dynamic-css-urls-for-flywheel-cdn

Code Review | Dynamic CSS URLs for Flywheel CDN

WordPress plugin Dynamic CSS URLs for Flywheel CDN scored89%from 54 tests.

About plugin

  • Plugin page: dynamic-css-urls-...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0
  • WordPress version: 6.3.1
  • First release: Jul 13, 2018
  • Latest release: Dec 11, 2018
  • Number of updates: 4
  • Update frequency: every 37.8 days
  • Top authors: bkidd85 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /777 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by Dynamic CSS URLs for Flywheel CDN
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.75 ▼1.40
Dashboard /wp-admin3.31 ▲0.0045.15 ▼2.95
Posts /wp-admin/edit.php3.36 ▲0.0046.51 ▲0.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.08 ▼2.82
Media Library /wp-admin/upload.php3.23 ▲0.0034.75 ▲0.71

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Dynamic CSS URLs for Flywheel CDN
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.34 ▼1.041.65 ▼0.2840.72 ▼3.64
Dashboard /wp-admin2,209 ▲215.82 ▼0.0994.04 ▼6.0537.70 ▼3.28
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0240.00 ▲2.9336.52 ▼2.22
Add New Post /wp-admin/post-new.php1,534 ▲123.01 ▼0.19647.59 ▼27.3050.82 ▲5.01
Media Library /wp-admin/upload.php1,391 ▲34.28 ▲0.0497.59 ▼10.9542.72 ▼2.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

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 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: "paypal.me/SmashBrando"
Please take inspiration from this readme.txt

dynamic-css-urls-for-flywheel-cdn/flywheel-dynamic-css-urls.php 92% from 13 tests

Analyzing the main PHP file in "Dynamic CSS URLs for Flywheel CDN" version 1.2.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dynamic-css-urls-for-flywheel-cdn.php" instead of "flywheel-dynamic-css-urls.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131312

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin