84% snow-monkey-editor

Code Review | Snow Monkey Editor

WordPress plugin Snow Monkey Editor scored84%from 54 tests.

About plugin

  • Plugin page: snow-monkey-editor
  • Plugin version: 9.3.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.4
  • WordPress version: 6.3.1
  • First release: Jan 18, 2020
  • Latest release: Nov 8, 2023
  • Number of updates: 133
  • Update frequency: every 10.5 days
  • Top authors: inc2734 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20,000+ active /207,520 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼7.46ms] Passed 4 tests

A check of server-side resources used by Snow Monkey Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2141.65 ▼7.76
Dashboard /wp-admin3.43 ▲0.0944.96 ▼19.40
Posts /wp-admin/edit.php3.55 ▲0.1948.85 ▼1.83
Add New Post /wp-admin/post-new.php6.02 ▲0.1493.64 ▲4.85
Media Library /wp-admin/upload.php3.36 ▲0.1335.24 ▼0.85

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 231 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Snow Monkey Editor: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.22 ▼0.062.28 ▲0.1437.96 ▼9.29
Dashboard /wp-admin2,192 ▲125.53 ▼0.1387.69 ▼11.6840.97 ▼3.14
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0338.88 ▲1.8634.70 ▼5.24
Add New Post /wp-admin/post-new.php1,565 ▲3918.83 ▼4.32646.11 ▼7.4247.80 ▲0.30
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.00100.56 ▼1.2543.13 ▼0.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Snow_Monkey\\Plugin\\Editor\\untrailingslashit() in wp-content/plugins/snow-monkey-editor/snow-monkey-editor.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: blocks, editor, page builder, gutenberg, gutenberg blocks...

snow-monkey-editor/snow-monkey-editor.php Passed 13 tests

The primary PHP file in "Snow Monkey Editor" version 9.3.2 is used by WordPress to initiate all plugin functionality
30 characters long description:
Extends gutenberg block editor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,900 lines of code in 166 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript70418372,901
PHP17208500932
Sass581053817
PO File16574145
JSON90086
Markdown1409
SVG7007
CSS3003

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.52
Average class complexity18.50
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods59
▷ Static methods1932.20%
▷ Public methods5694.92%
▷ Protected methods00.00%
▷ Private methods35.08%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin