90% ee-simple-file-list-media

Code Review | Simple File List Media

WordPress plugin Simple File List Media scored90%from 54 tests.

About plugin

  • Plugin page: ee-simple-file-li...
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 22, 2023
  • Latest release: Sep 13, 2023
  • Number of updates: 6
  • Update frequency: every 24.0 days
  • Top authors: eemitch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /249 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.77ms] Passed 4 tests

Analyzing server-side resources used by Simple File List Media
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.32 ▼1.38
Dashboard /wp-admin3.32 ▲0.0243.19 ▼3.18
Posts /wp-admin/edit.php3.37 ▲0.0243.26 ▼4.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.82 ▼10.39
Media Library /wp-admin/upload.php3.24 ▲0.0140.83 ▲8.76

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple File List Media
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.59 ▼0.601.71 ▼0.0738.84 ▼8.57
Dashboard /wp-admin2,209 ▲175.84 ▲0.9497.95 ▼8.3839.75 ▼4.06
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0333.88 ▼4.3536.10 ▲5.81
Add New Post /wp-admin/post-new.php1,533 ▼023.21 ▼0.12675.27 ▼27.6155.55 ▼4.87
Media Library /wp-admin/upload.php1,382 ▼34.21 ▲0.0193.83 ▼19.0440.69 ▼7.43

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
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: file sharing, audio player, file list, video player

ee-simple-file-list-media/ee-simple-file-list-media.php Passed 13 tests

The entry point to "Simple File List Media" version 2.0.2 is a PHP file that has certain tags in its header comment area
54 characters long description:
Adds audio and video media players to Simple File List

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin890 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PO File13182195624
PHP39638147
JavaScript1641673
CSS15346

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity5.67
▷ Minimum method complexity3.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin