Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.52MB] [CPU: ▼11.85ms] Passed 4 tests
Server-side resources used by MiniComposer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 37.65 ▼6.42 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.54 ▼2.56 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.61 ▲4.22 |
Add New Post /wp-admin/post-new.php | 3.55 ▼2.33 | 58.39 ▼42.63 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.14 ▲5.96 |
Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for MiniComposer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,464 ▲729 | 19.31 ▲4.94 | 85.92 ▲83.97 | 44.94 ▲2.05 |
Dashboard /wp-admin | 2,244 ▲56 | 4.96 ▲0.08 | 106.14 ▼0.26 | 40.44 ▼0.46 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.30 ▲0.25 | 38.75 ▲0.27 | 34.06 ▲1.18 |
Add New Post /wp-admin/post-new.php | 4,078 ▲2,543 | 9.60 ▼13.49 | 257.00 ▼414.52 | 70.82 ▲19.67 |
Media Library /wp-admin/upload.php | 1,429 ▲47 | 4.37 ▲0.16 | 98.97 ▲1.46 | 42.57 ▼1.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/minicomposer/public/partials/minicomposer-public-display.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/minicomposer/admin/partials/minicomposer-admin-display.php:16
- > PHP Warning
include(): Failed opening 'inline-edit.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/minicomposer/public/partials/minicomposer-public-display.php on line 15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/minicomposer/admin/partials/minicomposer-admin-display-base.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/minicomposer/public/partials/inline-edit.inc.php:8
- > PHP Warning
include(inline-edit.php): failed to open stream: No such file or directory in wp-content/plugins/minicomposer/public/partials/minicomposer-public-display.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== minicomposer ===
) - Donate link: Please fix this invalid URI: "MiniComposer"
minicomposer/minicomposer.php Passed 13 tests
The main PHP file in "MiniComposer" ver. 1.6.1 adds more information about the plugin and also serves as the entry point for this plugin
27 characters long description:
Layout page builder plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,512 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 471 | 933 | 1,723 |
JavaScript | 9 | 316 | 432 | 1,093 |
CSS | 3 | 128 | 31 | 597 |
PO File | 1 | 29 | 0 | 68 |
JSON | 3 | 0 | 0 | 31 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 19.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 7 | 7.78% |
▷ Public methods | 82 | 91.11% |
▷ Protected methods | 1 | 1.11% |
▷ Private methods | 7 | 7.78% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/edit-pen.png | 0.38KB | 0.32KB | ▼ 16.84% |