83% simple-file-list

Code Review | Simple File List

WordPress plugin Simple File List scored83%from 54 tests.

About plugin

  • Plugin page: simple-file-list
  • Plugin version: 6.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 21, 2015
  • Latest release: Nov 3, 2023
  • Number of updates: 134
  • Update frequency: every 21.7 days
  • Top authors: eemitch (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

5,000+ active /157,703 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.50MB] [CPU: ▼2.69ms] Passed 4 tests

An overview of server-side resources used by Simple File List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5345.18 ▲5.12
Dashboard /wp-admin3.81 ▲0.4749.59 ▼13.20
Posts /wp-admin/edit.php3.93 ▲0.5751.18 ▲2.51
Add New Post /wp-admin/post-new.php6.39 ▲0.5197.25 ▼3.19
Media Library /wp-admin/upload.php3.74 ▲0.5137.19 ▲3.11

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 123 new files
Database: no new tables, 9 new options
New WordPress options
eeSFL_FileList_1
db_upgraded
can_compress_scripts
widget_recent-comments
eeSFL_Settings_1
widget_recent-posts
eeSFL_BASE_Version
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple File List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲19713.54 ▼0.439.39 ▲7.7944.94 ▲0.38
Dashboard /wp-admin2,214 ▲435.58 ▲0.0191.04 ▲4.4442.92 ▲7.41
Posts /wp-admin/edit.php2,116 ▲161.94 ▼0.0838.62 ▼2.6736.92 ▼0.41
Add New Post /wp-admin/post-new.php1,539 ▲423.27 ▼2.00592.73 ▼50.7147.22 ▼13.87
Media Library /wp-admin/upload.php1,410 ▲74.17 ▼0.07100.00 ▲0.1946.11 ▲2.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • eeSFL_FileList_1
    • eeSFL_Settings_1
    • eeSFL_BASE_Version
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/simple-file-list/includes/ee-plugin-author.php
    • > /wp-content/plugins/simple-file-list/includes/ee-get-pro.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #4, #5, #6, #7, #8 in simple-file-list/assets to your readme.txt
  • Requires php: Invalid version format
Please take inspiration from this readme.txt

simple-file-list/ee-simple-file-list.php 85% from 13 tests

"Simple File List" version 6.1.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-file-list.php" instead of "ee-simple-file-list.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin16,339 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
PO File137,11912,28510,895
PHP192,2284883,664
CSS92251101,285
JavaScript531161433
HTML20039
SVG200023

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.45
Average class complexity170.00
▷ Minimum class complexity97.00
▷ Maximum class complexity243.00
Average method complexity12.27
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods2686.67%
▷ Protected methods00.00%
▷ Private methods413.33%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.27MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-128x128.png4.59KB3.03KB▼ 34.11%
images/icon-256x256.png273.72KB4.50KB▼ 98.35%