84% tinymce-remove-base-64-image

Code Review | TinyMCE remove-base-64-image

WordPress plugin TinyMCE remove-base-64-image scored84%from 54 tests.

About plugin

  • Plugin page: tinymce-remove-ba...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.2
  • WordPress version: 6.3.1
  • First release: Mar 22, 2013
  • Latest release: Jul 3, 2013
  • Number of updates: 8
  • Update frequency: every 12.9 days
  • Top authors: LingoJon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,324 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by TinyMCE remove-base-64-image
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.29 ▼2.50
Dashboard /wp-admin3.31 ▼0.0346.17 ▼14.81
Posts /wp-admin/edit.php3.36 ▲0.0144.62 ▲0.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.44 ▼12.27
Media Library /wp-admin/upload.php3.23 ▲0.0136.08 ▲3.56

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for TinyMCE remove-base-64-image
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.121.60 ▲0.0337.89 ▼2.22
Dashboard /wp-admin2,195 ▲245.64 ▲0.0582.51 ▼6.6537.31 ▼3.50
Posts /wp-admin/edit.php2,100 ▲32.00 ▲0.0333.88 ▼2.6033.26 ▼1.74
Add New Post /wp-admin/post-new.php1,526 ▼1122.99 ▲4.77666.40 ▲17.4253.79 ▼8.43
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0397.03 ▼4.3641.89 ▼0.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinymce-remove-base-64-image/removebase64image.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: base64, image, firefox, tinymce

tinymce-remove-base-64-image/removebase64image.php 92% from 13 tests

The primary PHP file in "TinyMCE remove-base-64-image" version 1.0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tinymce-remove-base-64-image.php" instead of "removebase64image.php")

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
Success! There were no dangerous files found in this plugin38 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10525
PHP162013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png95.26KB61.13KB▼ 35.83%