10% dexecure

Code Review | Dexecure

WordPress plugin Dexecure scored10%from 54 tests.

About plugin

  • Plugin page: dexecure
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Dec 23, 2017
  • Latest release: Jul 17, 2018
  • Number of updates: 8
  • Update frequency: every 26.1 days
  • Top authors: dexecure (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /783 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/dexecure/src/rewriter.php+34
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.85MB] [CPU: ▼61.35ms] Passed 4 tests

Analyzing server-side resources used by Dexecure
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.325.08 ▼37.33
Dashboard /wp-admin2.17 ▼1.186.82 ▼58.43
Posts /wp-admin/edit.php2.17 ▼1.195.84 ▼44.97
Add New Post /wp-admin/post-new.php2.17 ▼3.727.02 ▼104.66
Media Library /wp-admin/upload.php2.17 ▼1.065.93 ▼29.72
Dexecure /wp-admin/options-general.php?page=dexecure2.176.13

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
dex_cdn_options
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Dexecure
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.33 ▼1.051.63 ▼0.1540.91 ▼1.14
Dashboard /wp-admin2,228 ▲315.88 ▲0.8099.82 ▼3.7040.02 ▼5.44
Posts /wp-admin/edit.php2,101 ▲42.02 ▲0.0033.86 ▼4.6835.51 ▼3.25
Add New Post /wp-admin/post-new.php1,548 ▲2223.38 ▲5.68646.91 ▼73.0850.20 ▲1.03
Media Library /wp-admin/upload.php1,404 ▲44.21 ▼0.0395.74 ▼15.0544.13 ▼3.60
Dexecure /wp-admin/options-general.php?page=dexecure8732.0524.1335.56

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 were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=dexecure
    • > Notice in wp-content/plugins/dexecure/src/rewriter.php+141
    Undefined index: cdn_url
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=dexecure
    • > Notice in wp-content/plugins/dexecure/src/rewriter.php+142
    Undefined index: excludes

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

dexecure/cdn-loader.php 92% from 13 tests

The primary PHP file in "Dexecure" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dexecure.php" instead of "cdn-loader.php")

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
Good job! No executable or dangerous file extensions detected265 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP211593265

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin