89% wp-inline-js-converter

Code Review | WP Fast Minify

WordPress plugin WP Fast Minify scored89%from 54 tests.

About plugin

  • Plugin page: wp-inline-js-conv...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.7.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2017
  • Latest release: May 27, 2021
  • Number of updates: 61
  • Update frequency: every 21.6 days
  • Top authors: skita45 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,844 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▼2.23ms] Passed 4 tests

An overview of server-side resources used by WP Fast Minify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.11 ▼1.93
Dashboard /wp-admin3.31 ▼0.0352.61 ▼17.80
Posts /wp-admin/edit.php3.36 ▲0.0153.53 ▲3.75
Add New Post /wp-admin/post-new.php5.90 ▲0.01109.18 ▲9.52
Media Library /wp-admin/upload.php3.24 ▲0.0143.34 ▲7.07

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Fast Minify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,732 ▼2913.20 ▼1.061.87 ▲0.1045.56 ▲3.18
Dashboard /wp-admin2,231 ▲255.85 ▼0.03101.49 ▼6.2039.69 ▼0.30
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0240.33 ▲2.7135.06 ▼3.11
Add New Post /wp-admin/post-new.php1,570 ▲4418.41 ▲0.87676.82 ▲17.7851.19 ▼3.98
Media Library /wp-admin/upload.php1,416 ▲134.29 ▲0.08110.54 ▲10.5447.08 ▲1.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Admin Settings Page.), #2 (Admin Settings Page.(Japanese))
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

wp-inline-js-converter/wp-inline-js-converter.php Passed 13 tests

"WP Fast Minify" version 1.5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
97 characters long description:
Compress HTML Code, And Converting Inline Script and Style To JavaScript and CSS Compressed File.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin446 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP33868421
JavaScript1312014
CSS60011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods28
▷ Static methods310.71%
▷ Public methods1967.86%
▷ Protected methods828.57%
▷ Private methods13.57%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.21MB with 0.16MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png96.79KB26.48KB▼ 72.64%
screenshot-2.png123.17KB33.70KB▼ 72.64%