84% wp-dirls

Code Review | WP-DirLs

WordPress plugin WP-DirLs scored84%from 54 tests.

About plugin

  • Plugin page: wp-dirls
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.3.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2012
  • Latest release: May 2, 2012
  • Number of updates: 8
  • Update frequency: every 37.4 days
  • Top authors: paucapo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,441 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
Install script ran successfully

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

An overview of server-side resources used by WP-DirLs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.31 ▼4.47
Dashboard /wp-admin3.32 ▲0.0147.54 ▼1.14
Posts /wp-admin/edit.php3.37 ▲0.0147.50 ▲0.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.14 ▼6.36
Media Library /wp-admin/upload.php3.24 ▲0.0135.44 ▼5.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP-DirLs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.28 ▼0.081.64 ▼0.6141.31 ▼6.34
Dashboard /wp-admin2,198 ▲435.64 ▲0.0589.36 ▼11.9243.84 ▲4.95
Posts /wp-admin/edit.php2,100 ▲111.98 ▲0.0235.19 ▲1.7038.12 ▲5.04
Add New Post /wp-admin/post-new.php1,535 ▲2118.33 ▼4.85636.96 ▼15.4377.86 ▲27.07
Media Library /wp-admin/upload.php1,400 ▲154.25 ▲0.0197.92 ▼10.9941.95 ▼8.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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 no errors were found, this is by no means 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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-dirls/wp-dirls.php

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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: ls, files, listing, directory

wp-dirls/wp-dirls.php 92% from 13 tests

"WP-DirLs" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 338 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182131

PHP code Passed 2 tests

A brief analysis 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.73
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin