90% nextcellent-gallery-media-addon

Code Review | NextCellent Media Library Addon

WordPress plugin NextCellent Media Library Addon scored 90% from 54 tests.

About plugin

  • Plugin page: nextcellent-galle...
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Oct 3, 2014
  • Latest release: Apr 1, 2016
  • Number of updates: 28
  • Update frequency: every 19.5 days
  • Top authors: niknetniko (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 3,396 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.00MB] [CPU: ▼5.26ms] Passed 4 tests

Server-side resources used by NextCellent Media Library Addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.38 ▼1.59
Dashboard /wp-admin3.31 ▲0.0154.48 ▲1.86
Posts /wp-admin/edit.php3.36 ▲0.0047.03 ▼1.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.68 ▼14.32
Media Library /wp-admin/upload.php3.23 ▲0.0033.64 ▼3.84

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for NextCellent Media Library Addon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.83 ▲0.431.73 ▼0.0940.02 ▼5.39
Dashboard /wp-admin2,203 ▲115.79 ▲0.8196.20 ▼17.0537.59 ▼10.03
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0239.26 ▲2.8035.13 ▼2.72
Add New Post /wp-admin/post-new.php1,543 ▲1323.03 ▼0.30572.50 ▼129.5952.53 ▼0.93
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.0694.97 ▼9.9541.75 ▼3.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • 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
Even though no errors were found, this is by no means an exhaustive test

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 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
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (The plugin in action.)
You can look at the official readme.txt

nextcellent-gallery-media-addon/nextcellent-gallery-media-addon.php Passed 13 tests

The entry point to "NextCellent Media Library Addon" version 2.1.0 is a PHP file that has certain tags in its header comment area
48 characters long description:
Add WP media library integration to NextCellent.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected981 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP789166467
PO File3144185356
JavaScript12821140
CSS13018

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.17
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods23
▷ Static methods626.09%
▷ Public methods2086.96%
▷ Protected methods00.00%
▷ Private methods313.04%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png95.26KB40.59KB▼ 57.39%