57% wp-godspeed

Code Review | Instant WordPress CDN - WP Godspeed

WordPress plugin Instant WordPress CDN - WP Godspeed scored57%from 54 tests.

About plugin

  • Plugin page: wp-godspeed
  • Plugin version: 0.9.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.7
  • WordPress version: 6.3.1
  • First release: Jun 12, 2018
  • Latest release: Jul 16, 2018
  • Number of updates: 32
  • Update frequency: every 1.4 days
  • Top authors: wpgodspeed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /861 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.54ms] Passed 4 tests

Server-side resources used by Instant WordPress CDN - WP Godspeed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.13 ▼1.12
Dashboard /wp-admin3.38 ▲0.0849.77 ▼0.51
Posts /wp-admin/edit.php3.49 ▲0.1453.62 ▲7.24
Add New Post /wp-admin/post-new.php5.98 ▲0.0991.43 ▼15.75
Media Library /wp-admin/upload.php3.30 ▲0.0741.37 ▲7.29
Status /wp-admin/admin.php?page=wp-godspeed-status3.1728.62
Setup /wp-admin/admin.php?page=wp-godspeed-setup3.1964.60
Options /wp-admin/admin.php?page=wp-godspeed-options3.1727.26

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 727 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
wpgods_status
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Instant WordPress CDN - WP Godspeed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲10913.57 ▼0.881.82 ▲0.0340.76 ▼2.44
Dashboard /wp-admin2,261 ▲755.37 ▲0.39113.85 ▲5.7537.97 ▼4.21
Posts /wp-admin/edit.php2,145 ▲702.45 ▲0.4040.83 ▲1.2835.94 ▲3.19
Add New Post /wp-admin/post-new.php1,554 ▲1923.25 ▼0.09614.97 ▼38.9055.90 ▲8.19
Media Library /wp-admin/upload.php1,446 ▲584.53 ▲0.35101.94 ▲1.6844.39 ▲0.33
Status /wp-admin/admin.php?page=wp-godspeed-status1,1453.1883.1584.58
Setup /wp-admin/admin.php?page=wp-godspeed-setup9962.7142.5536.75
Options /wp-admin/admin.php?page=wp-godspeed-options9082.6936.4236.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-godspeed-options
    • > Notice in wp-content/plugins/wp-godspeed/admin/class-wp-godspeed-admin.php+269
    Undefined property: WP_Godspeed_Admin::$plugin_name_
    • > GET request to /wp-admin/admin.php?page=wp-godspeed-status
    • > Warning in wp-content/plugins/wp-godspeed/admin/class-wp-godspeed-admin.php+805
    Division by zero
    • > GET request to /wp-admin/admin.php?page=wp-godspeed-setup
    • > Notice in wp-content/plugins/wp-godspeed/admin/partials/wp-godspeed-admin-setup.php+91
    Undefined index: reset
    • > GET request to /wp-admin/admin.php?page=wp-godspeed-options
    • > Warning in wp-admin/includes/template.php+1771
    call_user_func() expects parameter 1 to be a valid callback, class 'WP_Godspeed_Admin' does not have a method 'wpgods_general_cb'

SRP 0% 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 items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-godspeed/public/partials/wp-godspeed-public-display.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Godspeed_Admin' not found in wp-content/plugins/wp-godspeed/includes/class-wp-godspeed-cron.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/wp-godspeed/admin/partials/wp-godspeed-admin-setup.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-godspeed/admin/partials/wp-godspeed-admin-options.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Godspeed_Admin' not found in wp-content/plugins/wp-godspeed/includes/class-wp-godspeed-cdn-stack.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Godspeed_Admin' not found in wp-content/plugins/wp-godspeed/includes/class-wp-godspeed-lazyload.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/wp-godspeed/admin/partials/wp-godspeed-admin-status.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=wp-godspeed-setup
    • > Javascript (severe) in unknown
    /wp-content/plugins/wp-godspeed/admin/js/jqueryui-editable.min.js?ver=1.5.1 5:12470 Uncaught TypeError: Cannot read properties of undefined (reading 'tooltip')

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: content delivery network, godspeed cdn, cdn, content distrubution network, lazy load...

wp-godspeed/wp-godspeed.php Passed 13 tests

The principal PHP file in "Instant WordPress CDN - WP Godspeed" v. 0.9.7 is loaded by WordPress automatically on each request
43 characters long description:
The premiere free CDN plugin for WordPress.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Please fix the following items
  • For security reasons, never distribute binary or executable files with your plugin
    • .ps1 - Windows PowerShell Cmdlet in Windows
      • wp-content/plugins/wp-godspeed/vendor/twbs/bootstrap/nuget/MyGet.ps1
80,619 lines of code in 459 files:
LanguageFilesBlank linesComment linesLines of code
Markdown913,440017,128
CSS341,52222114,653
JavaScript573,5152,72413,617
JSON1410013,368
Sass1181,4291,2107,721
HTML695962285,633
SVG182102,743
PHP244069472,599
LESS1434441,758
YAML1112771,219
XML572109
Bourne Shell2141950
make13012
PowerShell1459

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
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 complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods114
▷ Static methods65.26%
▷ Public methods10592.11%
▷ Protected methods00.00%
▷ Private methods97.89%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants1
▷ Global constants1100.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
76 compressed PNG files occupy 1.66MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/twbs/bootstrap/assets/img/favicons/mstile-144x144.png1.44KB1.54KB0.00%
vendor/twbs/bootstrap/docs/4.1/examples/screenshots/dashboard.png25.93KB27.82KB0.00%
vendor/twbs/bootstrap/site/docs/4.1/examples/screenshots/album.png25.75KB28.24KB0.00%
vendor/twbs/bootstrap/site/docs/4.1/assets/img/favicons/mstile-310x150.png1.71KB1.81KB0.00%
vendor/twbs/bootstrap/docs/4.1/examples/screenshots/sticky-footer.png9.44KB11.06KB0.00%