Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.97ms] Passed 4 tests
A check of server-side resources used by Docscloud
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.35 ▼0.38 |
Dashboard /wp-admin | 3.32 ▲0.01 | 58.79 ▲4.90 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.14 ▲0.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.36 ▼23.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.57 ▼0.78 |
Form List /wp-admin/admin.php?page=formlist | 3.26 | 30.48 |
Auth List /wp-admin/admin.php?page=authdetails | 3.24 | 33.45 |
Docscloud /wp-admin/admin.php?page=myplugin | 3.18 | 31.46 |
Add Auth Details /wp-admin/admin.php?page=addauth | 3.24 | 33.89 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_dcforms |
wp_docscloud |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Docscloud
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.69 ▲0.40 | 1.86 ▲0.21 | 44.62 ▲0.16 |
Dashboard /wp-admin | 2,222 ▲45 | 5.50 ▼0.15 | 88.01 ▼31.80 | 74.12 ▲20.25 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.12 ▲0.15 | 37.48 ▼6.01 | 32.99 ▼5.64 |
Add New Post /wp-admin/post-new.php | 1,559 ▲24 | 23.64 ▲5.56 | 664.55 ▲45.32 | 159.90 ▲96.76 |
Media Library /wp-admin/upload.php | 1,439 ▲42 | 4.15 ▼0.14 | 100.48 ▼11.30 | 64.99 ▲16.61 |
Form List /wp-admin/admin.php?page=formlist | 869 | 1.99 | 25.84 | 27.21 |
Auth List /wp-admin/admin.php?page=authdetails | 861 | 2.16 | 24.04 | 29.60 |
Docscloud /wp-admin/admin.php?page=myplugin | 821 | 2.00 | 24.37 | 23.63 |
Add Auth Details /wp-admin/admin.php?page=addauth | 855 | 2.00 | 27.04 | 26.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 2 tables
- wp_docscloud
- wp_dcforms
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=addauth
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
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
The following issues need your attention
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/dc-forms/addentry.php:35
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/dc-forms/displaylist.php on line 4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/dc-forms/viewformlist.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/dc-forms/viewformlist.php:106
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/dc-forms/displaylist.php:38
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/dc-forms/viewformlist.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/dc-forms/addentry.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=addauth
- > Network (severe)
wp-content/plugins/docsclouds/img/icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2 in dc-forms/assets to your readme.txt
dc-forms/docscloudplugin.php 92% from 13 tests
The main PHP script in "Docscloud" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dc-forms.php" instead of "docscloudplugin.php")
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
Success! There were no dangerous files found in this plugin285 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 39 | 26 | 285 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 6 | |
▷ Named functions | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
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 |
img/icon.png | 0.63KB | 0.52KB | ▼ 16.25% |