89% inline-image-base64

Code Review | Inline Image Base64 - inline specific images into the HTML

WordPress plugin Inline Image Base64 - inline specific images into the HTML scored 89% from 54 tests.

About plugin

  • Plugin page: inline-image-base64
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 19, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 32
  • Update frequency: every 26.3 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,510 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Inline Image Base64 - inline specific images into the HTML
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.17 ▼8.56
Dashboard /wp-admin3.31 ▲0.0148.11 ▼1.39
Posts /wp-admin/edit.php3.36 ▲0.0052.50 ▲3.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.87 ▲2.09
Media Library /wp-admin/upload.php3.23 ▲0.0036.95 ▲2.07

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Inline Image Base64 - inline specific images into the HTML: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.79 ▲0.421.61 ▼0.6144.50 ▲6.87
Dashboard /wp-admin2,209 ▲245.84 ▼0.0395.92 ▼8.7440.24 ▼2.43
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0139.67 ▲3.7735.09 ▲2.94
Add New Post /wp-admin/post-new.php1,514 ▼1917.44 ▼5.67598.81 ▼37.2649.69 ▲1.02
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0293.70 ▼6.1340.37 ▼4.47

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

inline-image-base64/inline-image-base64.php 85% from 13 tests

The entry point to "Inline Image Base64 - inline specific images into the HTML" version 0.0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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
Success! There were no dangerous files found in this plugin105 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5825105

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin