89% modify-visual-editor

Code Review | Modify Visual Editor

WordPress plugin Modify Visual Editor scored 89% from 54 tests.

About plugin

  • Plugin page: modify-visual-editor
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.1
  • WordPress version: 6.3.1
  • First release: Jan 26, 2017
  • Latest release: Feb 9, 2017
  • Number of updates: 13
  • Update frequency: every 1.0 days
  • Top authors: tradesouthwest@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 728 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.89ms] Passed 4 tests

A check of server-side resources used by Modify Visual Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.74 ▼4.94
Dashboard /wp-admin3.32 ▲0.0246.26 ▼2.99
Posts /wp-admin/edit.php3.37 ▲0.0245.87 ▼2.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.73 ▼8.80
Media Library /wp-admin/upload.php3.24 ▲0.0233.08 ▲0.78

Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
mvedASelect
mvedCSelect
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Modify Visual Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.34 ▼0.974.57 ▲2.9442.57 ▼0.17
Dashboard /wp-admin2,224 ▲335.84 ▲0.97106.10 ▼0.1937.23 ▼6.90
Posts /wp-admin/edit.php2,107 ▲182.02 ▼0.0336.72 ▼5.1734.44 ▼2.89
Add New Post /wp-admin/post-new.php1,552 ▲1918.41 ▼4.73603.66 ▼13.7143.88 ▼15.86
Media Library /wp-admin/upload.php1,406 ▲184.20 ▼0.0294.34 ▼3.7942.74 ▼1.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • mvedASelect
    • theysaidso_admin_options
    • widget_recent-posts
    • mvedCSelect

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)
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #2, #3, #4 in modify-visual-editor/assets to your readme.txt
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

modify-visual-editor/modify-visual-editor.php 85% from 13 tests

"Modify Visual Editor" version 0.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Keep the plugin description shorter than 140 characters (currently 218 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected360 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP278115327
CSS13518
PO File12315

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.18
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png21.97KB22.37KB0.00%
assets/tswlogo.png14.79KB7.47KB▼ 49.51%
assets/icon128x128.png9.39KB4.00KB▼ 57.46%
assets/screenshot-4.png13.00KB5.99KB▼ 53.89%
assets/screenshot-3.png37.66KB14.86KB▼ 60.55%