78% mong9-editor

Code Review | Page builder for Posts - Mong9 Editor

WordPress plugin Page builder for Posts - Mong9 Editor scored78%from 54 tests.

About plugin

  • Plugin page: mong9-editor
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2019
  • Latest release: Jun 26, 2019
  • Number of updates: 38
  • Update frequency: every 40.8 days
  • Top authors: mong9 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /1,623 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Page builder for Posts - Mong9 Editor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.11 ▼6.46
Dashboard /wp-admin3.31 ▲0.0148.00 ▼7.53
Posts /wp-admin/edit.php3.37 ▲0.0151.92 ▲4.52
Add New Post /wp-admin/post-new.php7.01 ▲1.13114.17 ▲17.16
Media Library /wp-admin/upload.php3.24 ▲0.0138.73 ▲2.36

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 279 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Page builder for Posts - Mong9 Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,028 ▲25713.98 ▼0.8210.60 ▲8.3941.67 ▼0.81
Dashboard /wp-admin2,206 ▲154.83 ▼0.04106.54 ▼4.5538.45 ▼5.90
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0139.65 ▲2.7934.61 ▼3.07
Add New Post /wp-admin/post-new.php1,531 ▲324.33 ▲5.83799.91 ▲145.4751.18 ▼6.19
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.0494.79 ▼14.6545.01 ▼2.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mong9-editor/includes/filters.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mong9-editor/includes/in-post.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mong9-editor/includes/editor-function.php:90
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mong9-editor/mong9-editor.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
Please take inspiration from this readme.txt

mong9-editor/mong9-editor.php 92% from 13 tests

The principal PHP file in "Page builder for Posts - Mong9 Editor" v. 1.1.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected22,768 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript443,74673614,757
CSS114081943,061
HTML155802,624
SVG1001,742
PHP12341102584

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity8.17
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
29 PNG files occupy 1.58MB with 0.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/select_arrow.png1.02KB0.15KB▼ 85.76%
img/win_close_b.png0.99KB0.16KB▼ 83.96%
img/pattern/gradient001.png0.13KB0.22KB0.00%
img/pattern/pattern_0003W.png8.46KB4.06KB▼ 51.94%
img/pattern/pattern_0002K.png1.64KB0.40KB▼ 75.94%