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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.34 | 4.46 ▼33.22 |
Dashboard /wp-admin | 2.15 ▼1.16 | 7.11 ▼41.23 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 7.02 ▼39.91 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 6.11 ▼86.08 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.76 ▼0.92 | 1.72 ▼0.05 | 42.30 ▲0.02 |
Dashboard /wp-admin | 2,228 ▲40 | 5.04 ▲0.17 | 99.37 ▼6.78 | 36.21 ▼3.47 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.32 ▲0.27 | 37.36 ▲1.97 | 32.47 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,532 ▼12 | 18.09 ▼0.45 | 709.10 ▲64.74 | 38.29 ▼23.74 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.50 ▲0.31 | 103.92 ▼5.65 | 45.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 29 | 204 |
CSS | 2 | 6 | 10 | 40 |
JavaScript | 1 | 0 | 0 | 3 |
Markdown | 1 | 1 | 0 | 3 |
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 code | 0.18 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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