83% nextgenthemes-jsdelivr-this

Code Review | NGT jsDelivr CDN

WordPress plugin NGT jsDelivr CDN scored83%from 54 tests.

About plugin

  • Plugin page: nextgenthemes-jsd...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 1, 2018
  • Latest release: Sep 12, 2019
  • Number of updates: 12
  • Update frequency: every 31.4 days
  • Top authors: nico23 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /10,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by NGT jsDelivr CDN
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.14209.76 ▲173.50
Dashboard /wp-admin3.35 ▲0.0445.05 ▼2.72
Posts /wp-admin/edit.php3.25 ▼0.1133.73 ▼17.10
Add New Post /wp-admin/post-new.php5.95 ▲0.06159.22 ▲62.09
Media Library /wp-admin/upload.php3.29 ▲0.06103.76 ▲69.13

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

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

Browser metrics Passed 4 tests

NGT jsDelivr CDN: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲1913.22 ▼1.161.83 ▲0.1042.74 ▲1.65
Dashboard /wp-admin2,209 ▲245.84 ▲0.9394.01 ▼22.4239.26 ▼2.25
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0440.71 ▼2.8635.38 ▼0.23
Add New Post /wp-admin/post-new.php1,542 ▲718.27 ▼5.23630.50 ▼45.7855.64 ▲7.22
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0195.10 ▼3.5042.06 ▼0.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Nextgenthemes\\JSdelivrThis\\add_filter() in wp-content/plugins/nextgenthemes-jsdelivr-this/nextgenthemes-jsdelivr-this.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: performance, minimalistic, cdn, minimal, js...

nextgenthemes-jsdelivr-this/nextgenthemes-jsdelivr-this.php 77% from 13 tests

The primary PHP file in "NGT jsDelivr CDN" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("Optional. Only useful if the translations are located in a")
  • Domain Path: The domain path must begin with a forward slash character ("/Optional. Only useful if the translations are located in a")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Everything looks great! No dangerous files found in this plugin160 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15086140
JSON10020

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
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
Namespaces1
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 images were found in this plugin