84% editor-wysiwyg-background-color

Code Review | Editor Wysiwyg Background Color

WordPress plugin Editor Wysiwyg Background Color scored84%from 54 tests.

About plugin

  • Plugin page: editor-wysiwyg-ba...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 9, 2018
  • Latest release: Jul 9, 2018
  • Number of updates: 16
  • Update frequency: N/A
  • Top authors: medfadi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /3,484 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼14.36ms] Passed 4 tests

An overview of server-side resources used by Editor Wysiwyg Background Color
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▼0.0245.58 ▼1.19
Dashboard /wp-admin3.32 ▲0.0144.67 ▼10.62
Posts /wp-admin/edit.php3.37 ▼0.4844.64 ▼14.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.44 ▼27.64
Media Library /wp-admin/upload.php3.24 ▲0.0131.76 ▼4.41

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Editor Wysiwyg Background Color
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.65 ▼0.351.78 ▼0.1640.97 ▼1.09
Dashboard /wp-admin2,209 ▲275.86 ▼0.04103.81 ▼6.0142.80 ▼1.92
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0235.09 ▼6.1734.15 ▼1.14
Add New Post /wp-admin/post-new.php1,530 ▲1623.09 ▲5.63617.79 ▼66.7849.72 ▼4.28
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0396.94 ▼14.0743.55 ▼8.11

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/editor-wysiwyg-background-color/editor-wysiwyg-background-color.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #3 (Plugin working admin editor), #4 (Plugin working on Twenty Seventeen theme), #5 (Plugin working on Twenty Sixteen theme), #6 (Comments working on Mesmerize theme), #7 (Comments working on Sydney theme), #8 (Dark Comments Template), #9 (Settings Page)
The official readme.txt might help

editor-wysiwyg-background-color/editor-wysiwyg-background-color.php Passed 13 tests

The primary PHP file in "Editor Wysiwyg Background Color" version 1.0 is used by WordPress to initiate all plugin functionality
62 characters long description:
A color picker for change the Wysiwyg editor background color.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin446 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PO File114455248
CSS137111
PHP141285
JavaScript2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/color.png1.23KB1.22KB▼ 0.72%