Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼159.65ms] Passed 4 tests
Server-side resources used by Smart Editor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 39.90 ▲16.31 |
Dashboard /wp-admin | 3.13 ▲0.07 | 45.28 ▼7.34 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 51.98 ▲3.97 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 97.30 ▼634.96 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 35.14 ▼0.27 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Editor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.35 ▲0.83 | 11.13 ▼1.98 | 49.77 ▼6.47 |
Dashboard /wp-admin | 2,975 ▲44 | 5.96 ▲0.00 | 149.90 ▼10.72 | 120.15 ▼3.17 |
Posts /wp-admin/edit.php | 2,750 ▲11 | 2.71 ▼0.00 | 68.37 ▼7.04 | 100.27 ▲2.18 |
Add New Post /wp-admin/post-new.php | 1,701 ▲18 | 18.83 ▲2.59 | 376.77 ▼64.28 | 128.20 ▲0.90 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.02 ▼0.01 | 160.16 ▲1.53 | 125.27 ▼1.99 |
SmartEditor /wp-admin/smarteditor.php | 26 | 0.90 | 0.13 | 11.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/smart-editor/smarteditor.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/smarteditor.php
- > Network (severe)
wp-admin/smarteditor.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% 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
4 plugin tags: editor, wysiwyg, preview, html5
smart-editor/smarteditor.php 92% from 13 tests
"Smart Editor" version 0.8.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("smart-editor.php" instead of "smarteditor.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,921 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 130 | 119 | 1,048 |
CSS | 1 | 19 | 17 | 493 |
PHP | 4 | 51 | 67 | 316 |
PO File | 2 | 19 | 20 | 64 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
18 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon-underline.png | 0.42KB | 0.39KB | ▼ 8.74% |
img/icon-blockquote.png | 0.48KB | 0.59KB | 0.00% |
img/icon-ul.png | 0.29KB | 0.31KB | 0.00% |
img/icon-ol.png | 0.39KB | 0.36KB | ▼ 8.19% |
img/icon-cssbtn.png | 0.53KB | 0.58KB | 0.00% |