80% wp-scripts-updater

Code Review | WP Scripts Updater

WordPress plugin WP Scripts Updater scored 80% from 54 tests.

About plugin

  • Plugin page: wp-scripts-updater
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Aug 28, 2013
  • Latest release: Aug 28, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: The Illusive Man (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,294 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.79MB] [CPU: ▼57.34ms] Passed 4 tests

Server-side resources used by WP Scripts Updater
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.265.27 ▼40.34
Dashboard /wp-admin2.23 ▼1.086.36 ▼47.79
Posts /wp-admin/edit.php2.23 ▼1.135.90 ▼50.13
Add New Post /wp-admin/post-new.php2.23 ▼3.666.94 ▼91.11
Media Library /wp-admin/upload.php2.23 ▼1.017.31 ▼31.93

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 169 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Scripts Updater
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲11713.67 ▲0.398.61 ▲6.3339.39 ▼4.38
Dashboard /wp-admin2,209 ▲34.91 ▲0.05104.21 ▼3.8040.53 ▼2.77
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0637.83 ▼7.7234.81 ▼5.40
Add New Post /wp-admin/post-new.php1,533 ▲1323.42 ▲0.25593.80 ▼59.5352.51 ▼0.02
Media Library /wp-admin/upload.php1,391 ▲64.11 ▼0.06107.48 ▲5.1355.07 ▲11.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_deregister_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the genericons handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: jquery, update, html5, css3, wordpress...

wp-scripts-updater/wp-scripts-updater.php Passed 13 tests

"WP Scripts Updater" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
63 characters long description:
Update Wordpress scripts and add some new by using this plugin.

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
Good job! No executable or dangerous file extensions detected1,037 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13191561679
PHP178167247
SVG100105
CSS62256

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
17 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/jquery/ui/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
css/jquery/ui/themes/base/images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%
css/jquery/ui/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
css/jquery/mobile/images/icons-36-black.png3.77KB4.09KB0.00%
css/jquery/mobile/images/icons-36-white.png3.77KB4.11KB0.00%