Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼297.54ms] Passed 4 tests
This is a short check of server-side resources used by Configurator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.56 ▲10.36 |
Dashboard /wp-admin | 3.07 ▲0.02 | 47.21 ▲4.27 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 39.69 ▼7.17 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 84.50 ▼1,179.21 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 32.59 ▼8.05 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Configurator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,724 ▲118 | 15.88 ▲0.35 | 7.17 ▼1.11 | 46.67 ▲2.48 |
Dashboard /wp-admin | 2,978 ▲125 | 5.93 ▲0.08 | 132.65 ▲2.49 | 102.10 ▼3.52 |
Posts /wp-admin/edit.php | 2,728 ▲25 | 2.69 ▲0.01 | 65.99 ▲0.61 | 84.42 ▼5.02 |
Add New Post /wp-admin/post-new.php | 1,868 ▲15 | 19.22 ▲0.11 | 359.82 ▼5.34 | 105.17 ▲1.57 |
Media Library /wp-admin/upload.php | 1,794 ▲19 | 5.01 ▼0.00 | 152.22 ▲2.82 | 118.09 ▲10.73 |
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
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 10× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/configurator/Configurator/class-configurator-parser.php
- > /wp-content/plugins/configurator/Configurator/class-configurator-reader.php
- > /wp-content/plugins/configurator/Configurator/class-configurator-pagerenderer.php
- > /wp-content/plugins/configurator/Configurator/class-configurator-util.php
- > /wp-content/plugins/configurator/Configurator/class-configurator-posthandler.php
- > /wp-content/plugins/configurator/Configurator/class-configurator-line.php
- > /wp-content/plugins/configurator/Configurator/class-configurator-configurator.php
- > /wp-content/plugins/configurator/Configurator/class-configurator-writer.php
- > /wp-content/plugins/configurator/configurator.php
- > /wp-content/plugins/configurator/Configurator/class-configurator-setup.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/configurator/views/configurator.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== configurator ===
)
configurator/configurator.php Passed 13 tests
The entry point to "Configurator" version 1.0 is a PHP file that has certain tags in its header comment area
78 characters long description:
Configurator is a plugin that allows you to edit wp-config.php in the browser.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin327 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 107 | 124 | 316 |
CSS | 1 | 1 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 3.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 6 | 20.00% |
▷ Public methods | 24 | 80.00% |
▷ Protected methods | 5 | 16.67% |
▷ Private methods | 1 | 3.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected