Benchmarks
Plugin footprint Passed 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.01MB] [CPU: ▼137.76ms] Passed 4 tests
This is a short check of server-side resources used by ACE Editor for WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 36.23 ▲13.86 |
Dashboard /wp-admin | 3.06 ▲0.01 | 44.95 ▼3.72 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.89 ▼0.76 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 93.27 ▼548.19 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.24 ▲1.62 |
Server storage [IO: ▲2.84MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 89 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for ACE Editor for WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.25 ▲0.60 | 12.48 ▲1.92 | 46.00 ▼4.01 |
Dashboard /wp-admin | 2,973 ▲39 | 5.94 ▼0.07 | 141.18 ▼7.94 | 103.52 ▼13.68 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.01 | 83.43 ▲22.23 | 83.96 ▼4.18 |
Add New Post /wp-admin/post-new.php | 1,849 ▲234 | 19.48 ▼1.90 | 384.71 ▲85.59 | 105.77 ▲0.56 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.00 | 150.15 ▼21.29 | 116.76 ▼3.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ace-editor-for-wp/no-visual.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ace-editor-for-wp/ace4wp.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Screenshot #1 (Editing a Page) image required
ace-editor-for-wp/ace4wp.php 92% from 13 tests
"ACE Editor for WP" version 0.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ace-editor-for-wp.php" instead of "ace4wp.php")
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
There were no executable files found in this plugin280 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 81 | 29 | 33 | 234 |
PHP | 3 | 12 | 15 | 39 |
Markdown | 1 | 6 | 0 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 171.78KB | 57.28KB | ▼ 66.65% |