10% square-candy-tinymce-reboot

Code Review | Square Candy TinyMCE Reboot

WordPress plugin Square Candy TinyMCE Reboot scored10%from 54 tests.

About plugin

  • Plugin page: square-candy-tiny...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Mar 11, 2016
  • Latest release: Mar 18, 2016
  • Number of updates: 11
  • Update frequency: every 0.6 days
  • Top authors: squarecandy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /953 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/square-candy-tinymce-reboot/squarecandy-tinymce.php+18
    Methods with the same name as their class will not be constructors in a future version of PHP; squarecandy_tinymce_writing_setting has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼50.11ms] Passed 4 tests

Analyzing server-side resources used by Square Candy TinyMCE Reboot
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.344.46 ▼33.22
Dashboard /wp-admin2.15 ▼1.167.11 ▼41.23
Posts /wp-admin/edit.php2.15 ▼1.217.02 ▼39.91
Add New Post /wp-admin/post-new.php2.15 ▼3.746.11 ▼86.08
Media Library /wp-admin/upload.php2.15 ▼1.085.63 ▼32.05

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Square Candy TinyMCE Reboot
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.76 ▼0.921.72 ▼0.0542.30 ▲0.02
Dashboard /wp-admin2,228 ▲405.04 ▲0.1799.37 ▼6.7836.21 ▼3.47
Posts /wp-admin/edit.php2,113 ▲212.32 ▲0.2737.36 ▲1.9732.47 ▼2.26
Add New Post /wp-admin/post-new.php1,532 ▼1218.09 ▼0.45709.10 ▲64.7438.29 ▼23.74
Media Library /wp-admin/upload.php1,404 ▲164.50 ▲0.31103.92 ▼5.6545.30 ▼2.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/square-candy-tinymce-reboot/squarecandy-tinymce.php+18
    Methods with the same name as their class will not be constructors in a future version of PHP; squarecandy_tinymce_writing_setting has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/square-candy-tinymce-reboot/squarecandy-tinymce.php:20
    • > PHP Warning
      Use of undefined constant DOCUMENT_ROOT - assumed 'DOCUMENT_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/square-candy-tinymce-reboot/dynamic.css.php on line 6

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: tinymce, editor

square-candy-tinymce-reboot/squarecandy-tinymce.php 85% from 13 tests

The primary PHP file in "Square Candy TinyMCE Reboot" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("square-candy-tinymce-reboot.php" instead of "squarecandy-tinymce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin250 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24029204
CSS261040
JavaScript1003
Markdown1103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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 images were found in this plugin