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.11MB] [CPU: ▼1.75ms] Passed 4 tests
A check of server-side resources used by Ditto
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.19 ▼2.28 |
Dashboard /wp-admin | 3.42 ▲0.12 | 50.31 ▼7.09 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 51.50 ▼0.87 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 94.64 ▲3.25 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 39.19 ▲7.89 |
Deploy /wp-admin/admin.php?page=ditto-deploy | 3.33 | 35.03 |
Dashboard /wp-admin/admin.php?page=ditto | 3.31 | 42.58 |
Help /wp-admin/admin.php?page=ditto-help | 3.31 | 43.49 |
Settings /wp-admin/admin.php?page=ditto-settings | 3.31 | 38.04 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Ditto: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.22 ▼0.40 | 1.71 ▲0.06 | 44.40 ▲1.80 |
Dashboard /wp-admin | 2,216 ▲39 | 5.55 ▲0.02 | 98.76 ▲12.23 | 91.76 ▲48.55 |
Posts /wp-admin/edit.php | 2,139 ▲42 | 1.99 ▼0.03 | 41.90 ▲1.64 | 34.89 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,558 ▲29 | 23.08 ▲0.05 | 707.43 ▲23.75 | 55.17 ▲1.90 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.13 ▼0.15 | 106.90 ▼0.38 | 79.49 ▲31.85 |
Deploy /wp-admin/admin.php?page=ditto-deploy | 977 | 2.17 | 23.34 | 27.13 |
Dashboard /wp-admin/admin.php?page=ditto | 1,456 | 9.20 | 281.79 | 79.55 |
Help /wp-admin/admin.php?page=ditto-help | 1,427 | 9.17 | 278.33 | 49.17 |
Settings /wp-admin/admin.php?page=ditto-settings | 857 | 2.19 | 23.59 | 28.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ditto/ditto.php:13
- > 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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Plugin's dashboard page), #2 (Plugin's deploy page)
- Tags: There are too many tags (14 tag instead of maximum 10)
ditto/ditto.php Passed 13 tests
The principal PHP file in "Ditto" v. 1.0.1 is loaded by WordPress automatically on each request
95 characters long description:
This plugin allows you copy a plugin and theme (TODO) to a test/sandbox WordPress installation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin720 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 186 | 213 | 694 |
CSS | 2 | 7 | 5 | 26 |
JavaScript | 1 | 0 | 1 | 0 |
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.29 |
Average class complexity | 8.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 10 | 76.92% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.16MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 95.17KB | 36.17KB | ▼ 62.00% |
i/guNzr.qr.2.png | 0.23KB | 0.23KB | 0.43% |
screenshot-2.png | 65.88KB | 23.80KB | ▼ 63.87% |
assets/server.png | 0.52KB | 0.65KB | 0.00% |
i/guNzr.qr.16.png | 0.39KB | 0.41KB | 0.00% |