94% adm-media-list

Code Review | ADM Media List

WordPress plugin ADM Media List scored 94% from 54 tests.

About plugin

  • Plugin page: adm-media-list
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.4
  • WordPress version: 5.9.2
  • First release: Oct 29, 2019
  • Latest release: Oct 29, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: adriangeorgel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,159 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by ADM Media List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.76 ▲5.91
Dashboard /wp-admin3.42 ▲0.0132.82 ▼1.76
Posts /wp-admin/edit.php3.65 ▲0.0136.52 ▼5.56
Add New Post /wp-admin/post-new.php6.90 ▼0.0891.60 ▼1,179.31
Media Library /wp-admin/upload.php3.31 ▲0.0123.84 ▲0.44

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for ADM Media List
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,844 ▲9015.95 ▼0.077.03 ▲0.922.68 ▼0.32
Dashboard /wp-admin2,937 ▲766.28 ▼0.01118.01 ▼39.92156.37 ▼32.86
Posts /wp-admin/edit.php2,692 ▲13.24 ▼0.0063.32 ▼3.77141.97 ▼6.05
Add New Post /wp-admin/post-new.php1,665 ▲416.06 ▼0.27424.09 ▼5.29157.08 ▼2.14
Media Library /wp-admin/upload.php1,694 ▼45.52 ▲0.07141.59 ▼6.90183.88 ▼3.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adm-media-list/adm-media-list.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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: media library urls, url list, media list, media library

adm-media-list/adm-media-list.php Passed 13 tests

The primary PHP file in "ADM Media List" version 1.0 is used by WordPress to initiate all plugin functionality
95 characters long description:
Adds a widget to the dashboard that displays a list of urls for each item in the media library.

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 plugin78 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS12136
PHP1181236
JavaScript1346

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png8.50KB3.10KB▼ 63.52%
assets/icon-128x128.png8.50KB3.10KB▼ 63.52%