84% gsp-assets-manager

Code Review | GSP Assets Manager (Easy Live Assets Editor)

WordPress plugin GSP Assets Manager (Easy Live Assets Editor) scored84%from 54 tests.

About plugin

  • Plugin page: gsp-assets-manager
  • Plugin version: 1.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Dec 9, 2021
  • Latest release: Jul 6, 2022
  • Number of updates: 23
  • Update frequency: every 9.2 days
  • Top authors: doonfrs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,708 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.27ms] Passed 4 tests

Server-side resources used by GSP Assets Manager (Easy Live Assets Editor)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.46 ▼10.06
Dashboard /wp-admin3.32 ▼0.0248.15 ▼21.88
Posts /wp-admin/edit.php3.37 ▲0.0152.06 ▼1.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.41 ▼15.87
Media Library /wp-admin/upload.php3.24 ▲0.0136.51 ▲0.93

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for GSP Assets Manager (Easy Live Assets Editor)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.57 ▼0.814.55 ▲2.6639.16 ▼4.87
Dashboard /wp-admin2,212 ▲245.83 ▼0.05121.84 ▼0.9843.64 ▼1.89
Posts /wp-admin/edit.php2,101 ▲92.04 ▼0.0143.31 ▼0.3536.67 ▼3.09
Add New Post /wp-admin/post-new.php1,540 ▲2123.13 ▼0.43657.15 ▼0.4562.93 ▲2.03
Media Library /wp-admin/upload.php1,397 ▲124.22 ▲0.07108.32 ▲1.4141.90 ▼2.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/gsp-assets-manager/gsp.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: speed, gtmetrix, pagespeed, performance, assets...

gsp-assets-manager/gsp.php 85% from 13 tests

The entry point to "GSP Assets Manager (Easy Live Assets Editor)" version 1.8 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("gsp-assets-manager.php" instead of "gsp.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 188 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,723 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4264541,024
JavaScript1487354
CSS14111345

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity27.00
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods2273.33%
▷ Public methods2893.33%
▷ Protected methods00.00%
▷ Private methods26.67%
Functions42
▷ Named functions3788.10%
▷ Anonymous functions511.90%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo-small.png14.31KB9.52KB▼ 33.50%