78% blighty-explorer

Code Review | Blighty Explorer

WordPress plugin Blighty Explorer scored78%from 54 tests.

About plugin

  • Plugin page: blighty-explorer
  • Plugin version: 2.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-5.7
  • WordPress version: 6.3.1
  • First release: Apr 16, 2015
  • Latest release: Mar 27, 2021
  • Number of updates: 163
  • Update frequency: every 13.3 days
  • Top authors: Blighty (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

200+ active /13,911 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 gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼7.02ms] Passed 4 tests

Server-side resources used by Blighty Explorer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1340.24 ▼3.74
Dashboard /wp-admin3.51 ▲0.1746.22 ▼8.25
Posts /wp-admin/edit.php3.63 ▲0.2749.79 ▲5.37
Add New Post /wp-admin/post-new.php6.09 ▲0.2181.92 ▼21.45
Media Library /wp-admin/upload.php3.44 ▲0.2141.93 ▲5.48

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 105 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Blighty Explorer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲12913.44 ▼1.029.30 ▲7.3343.49 ▼2.77
Dashboard /wp-admin2,210 ▲335.67 ▲0.0284.35 ▼3.9677.42 ▲34.45
Posts /wp-admin/edit.php2,121 ▲181.98 ▲0.0140.61 ▲3.1835.40 ▲0.65
Add New Post /wp-admin/post-new.php1,693 ▲16722.17 ▼1.03662.40 ▲39.9175.48 ▲10.80
Media Library /wp-admin/upload.php1,409 ▲94.16 ▼0.02109.92 ▲6.6089.05 ▲47.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% 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 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/blighty-explorer/blighty-explorer.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blighty-explorer/admin-settings.php:96
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/blighty-explorer/blank.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

blighty-explorer/blighty-explorer.php Passed 13 tests

The main file in "Blighty Explorer" v. 2.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Provides an easy integrateable layer between a folder hierarchy

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
No dangerous file extensions were detected2,368 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP94553452,098
CSS2260144
PO File1171947
Markdown114041
JavaScript14038

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity36.50
▷ Minimum class complexity3.00
▷ Maximum class complexity105.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods78
▷ Static methods1114.10%
▷ Public methods6380.77%
▷ Protected methods00.00%
▷ Private methods1519.23%
Functions22
▷ Named functions2090.91%
▷ Anonymous functions29.09%
Constants16
▷ Global constants637.50%
▷ Class constants1062.50%
▷ Public constants10100.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
87 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/page_link.png0.81KB0.96KB0.00%
icons/page_white_cup.png0.62KB0.62KB0.47%
icons/page_white_medal.png0.69KB0.71KB0.00%
icons/page_white_coldfusion.png0.58KB0.61KB0.00%
icons/page_white_cd.png0.65KB0.70KB0.00%