84% compact-mce

Code Review | Compact MCE

WordPress plugin Compact MCE scored84%from 54 tests.

About plugin

  • Plugin page: compact-mce
  • Plugin version: 19.05
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 27, 2016
  • Latest release: May 2, 2019
  • Number of updates: 19
  • Update frequency: every 56.3 days
  • Top authors: lineshjose (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,339 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.56ms] Passed 4 tests

An overview of server-side resources used by Compact MCE
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.76 ▼0.86
Dashboard /wp-admin3.32 ▲0.0246.25 ▼0.98
Posts /wp-admin/edit.php3.37 ▲0.0240.62 ▼3.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.87 ▼12.81
Media Library /wp-admin/upload.php3.24 ▲0.0235.69 ▲0.49

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Compact MCE
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.271.70 ▼0.0546.41 ▲5.05
Dashboard /wp-admin2,198 ▲205.57 ▼0.0888.05 ▼9.8542.48 ▲3.56
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0038.07 ▲1.6635.12 ▼6.41
Add New Post /wp-admin/post-new.php1,534 ▼218.03 ▼0.07638.68 ▲40.62100.54 ▲34.14
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.0398.40 ▼5.2542.60 ▲0.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/compact-mce/index.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: editor, visual editor, tinymce, mce

compact-mce/index.php 92% from 13 tests

The main PHP file in "Compact MCE" ver. 19.05 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("compact-mce.php" instead of "index.php")

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
There were no executable files found in this plugin288 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS2408225
PHP151457
JavaScript5006

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected