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.03MB] [CPU: ▼141.11ms] Passed 4 tests
Analyzing server-side resources used by Custom Dolly
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 40.81 ▲1.65 |
Dashboard /wp-admin | 3.09 ▲0.03 | 52.83 ▼3.59 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 52.80 ▲8.08 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 102.15 ▼570.56 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 52.63 ▲19.91 |
Custom Dolly /wp-admin/themes.php?page=custom-dolly | 3.00 | 43.94 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Custom Dolly: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,715 ▲119 | 15.90 ▲0.26 | 12.27 ▲2.13 | 49.12 ▼7.35 |
Dashboard /wp-admin | 2,980 ▲46 | 5.89 ▼0.03 | 180.23 ▲19.19 | 128.84 ▲7.65 |
Posts /wp-admin/edit.php | 2,754 ▲15 | 2.72 ▼0.12 | 73.79 ▲1.67 | 110.59 ▲19.51 |
Add New Post /wp-admin/post-new.php | 1,692 ▲77 | 18.43 ▼2.94 | 511.42 ▲169.75 | 113.53 ▲2.42 |
Media Library /wp-admin/upload.php | 1,823 ▲16 | 5.03 ▲0.03 | 175.76 ▲15.13 | 152.35 ▲31.67 |
Custom Dolly /wp-admin/themes.php?page=custom-dolly | 1,046 | 2.09 | 68.44 | 95.95 |
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
This plugin's uninstaller 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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-dolly/custom-dolly.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== custom-dolly ===
)
custom-dolly/custom-dolly.php Passed 13 tests
"Custom Dolly" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
Hello Dolly but edit/save your own lyrics from the WordPress admin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin100 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 29 | 100 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
There are no PNG files in this plugin