84% client-proof-visual-editor

Code Review | Client-proof Visual Editor

WordPress plugin Client-proof Visual Editor scored84%from 54 tests.

About plugin

  • Plugin page: client-proof-visu...
  • Plugin version: 1.7.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4
  • WordPress version: 6.3.1
  • First release: May 28, 2011
  • Latest release: Mar 11, 2020
  • Number of updates: 24
  • Update frequency: every 134.1 days
  • Top authors: hugobaeta (79.17%)vanillalounge (25%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /10,556 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.01MB] [CPU: ▼6.14ms] Passed 4 tests

Analyzing server-side resources used by Client-proof Visual Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.42 ▼2.81
Dashboard /wp-admin3.31 ▼0.0452.11 ▼7.05
Posts /wp-admin/edit.php3.36 ▲0.0048.78 ▼2.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.85 ▼12.39
Media Library /wp-admin/upload.php3.23 ▲0.0041.82 ▲4.27

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

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

Browser metrics Passed 4 tests

Client-proof Visual Editor: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.35 ▼0.241.93 ▼0.3244.47 ▲2.94
Dashboard /wp-admin2,186 ▲65.56 ▼0.0687.79 ▼2.4741.56 ▲0.18
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0136.90 ▲2.4630.56 ▼6.20
Add New Post /wp-admin/post-new.php1,526 ▼023.56 ▲0.71705.19 ▲67.2563.18 ▲12.18
Media Library /wp-admin/upload.php1,403 ▲34.13 ▼0.07102.87 ▼6.0445.37 ▲0.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/client-proof-visual-editor/clientproof-visual-editor.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot-1.png) image missing
Please take inspiration from this readme.txt

client-proof-visual-editor/clientproof-visual-editor.php 92% from 13 tests

The primary PHP file in "Client-proof Visual Editor" version 1.7.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("client-proof-visual-editor.php" instead of "clientproof-visual-editor.php")

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
Good job! No executable or dangerous file extensions detected11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152811

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png34.93KB11.86KB▼ 66.06%