84% cloudflare-rocket-loader-ignore

Code Review | CloudFlare Rocket Loader Ignore

WordPress plugin CloudFlare Rocket Loader Ignore scored84%from 54 tests.

About plugin

  • Plugin page: cloudflare-rocket...
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Jun 30, 2014
  • Latest release: Aug 20, 2014
  • Number of updates: 8
  • Update frequency: every 6.6 days
  • Top authors: jp2112 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

50+ active /3,925 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
Install script ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼37.24ms] Passed 4 tests

An overview of server-side resources used by CloudFlare Rocket Loader Ignore
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▼0.0180.16 ▼25.86
Dashboard /wp-admin3.32 ▲0.0177.11 ▼20.06
Posts /wp-admin/edit.php3.37 ▼0.4880.30 ▼26.75
Add New Post /wp-admin/post-new.php5.90 ▲0.01150.29 ▼76.27
Media Library /wp-admin/upload.php3.24 ▲0.0162.00 ▼12.07
CloudFlare Rocket Loader Ignore /wp-admin/options-general.php?page=cloudflare-rocket-loader-ignore3.2356.67

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
cfrli
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for CloudFlare Rocket Loader Ignore
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4814.30 ▲0.144.64 ▲0.1690.91 ▼0.97
Dashboard /wp-admin2,210 ▲285.88 ▲0.97173.96 ▼25.1691.35 ▲3.13
Posts /wp-admin/edit.php2,093 ▲11.99 ▼0.0467.85 ▼12.3186.09 ▲0.49
Add New Post /wp-admin/post-new.php1,401 ▲417.91 ▲0.23949.93 ▼126.2090.31 ▼13.99
Media Library /wp-admin/upload.php1,386 ▼54.20 ▲0.03198.08 ▲10.9299.31 ▲0.56
CloudFlare Rocket Loader Ignore /wp-admin/options-general.php?page=cloudflare-rocket-loader-ignore8912.0145.85100.44

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/cloudflare-rocket-loader-ignore/cfrli.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: script, javascript, ignore, rocket loader, cloudflare

cloudflare-rocket-loader-ignore/cfrli.php 92% from 13 tests

The entry point to "CloudFlare Rocket Loader Ignore" version 0.0.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cloudflare-rocket-loader-ignore.php" instead of "cfrli.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin280 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP335110275
CSS1005

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/settings.png2.11KB2.31KB0.00%
images/support.png5.03KB2.79KB▼ 44.54%
images/redcloud.png1.07KB1.00KB▼ 6.40%
images/parameters.png3.48KB2.94KB▼ 15.45%