Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.95ms] Passed 4 tests
An overview of server-side resources used by Eloquent
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.35 ▲0.95 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.68 ▼1.10 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.59 ▲1.29 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.52 ▼11.39 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.16 ▼0.24 |
Eloquent /wp-admin/options-general.php?page=eloquent-options | 3.22 | 35.02 |
Server storage [IO: ▲0.64MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Eloquent
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.56 ▲0.19 | 1.60 ▼0.07 | 42.55 ▲0.66 |
Dashboard /wp-admin | 2,219 ▲42 | 5.74 ▲0.08 | 86.22 ▼4.84 | 39.82 ▼3.24 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.24 ▲0.24 | 35.29 ▼1.11 | 38.50 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,549 ▲13 | 23.10 ▲4.83 | 663.70 ▼2.17 | 58.49 ▼6.19 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.37 ▲0.19 | 94.35 ▼6.69 | 47.22 ▲3.60 |
Eloquent /wp-admin/options-general.php?page=eloquent-options | 887 | 1.82 | 27.08 | 26.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/eloquent/eloquent.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Eloquent editor), #2 (Image upload/edit dialog), #3 (Image/element attributes dialog)
eloquent/eloquent.php Passed 13 tests
Analyzing the main PHP file in "Eloquent" version 0.2
42 characters long description:
Awesome front-end editor for your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin863 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 114 | 38 | 373 |
JavaScript | 2 | 56 | 9 | 360 |
SVG | 4 | 1 | 0 | 129 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 1 | 6.25% |
▷ Private methods | 1 | 6.25% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.36MB with 0.26MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 157.16KB | 58.72KB | ▼ 62.64% |
screenshot-1.png | 164.82KB | 46.82KB | ▼ 71.59% |
screenshot-3.png | 51.18KB | 11.37KB | ▼ 77.78% |