Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.80ms] Passed 4 tests
This is a short check of server-side resources used by Docu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 37.99 ▲1.60 |
Dashboard /wp-admin | 3.46 ▲0.15 | 45.25 ▼2.79 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.15 ▲2.80 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 90.46 ▼4.81 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.07 ▲6.70 |
All Docs /wp-admin/edit.php?post_type=doc | 3.43 | 37.71 |
Add New /wp-admin/post-new.php?post_type=doc | 3.51 | 50.13 |
Categories /wp-admin/edit-tags.php?taxonomy=doc_category&post_type=doc | 3.38 | 34.25 |
Server storage [IO: ▲2.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_docu_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Docu
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲181 | 13.75 ▼0.80 | 7.93 ▲6.20 | 38.47 ▼6.94 |
Dashboard /wp-admin | 2,244 ▲53 | 5.88 ▼0.00 | 98.40 ▼8.98 | 39.35 ▼2.77 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.05 ▲0.03 | 36.38 ▲1.56 | 34.85 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,553 ▲20 | 18.51 ▼4.74 | 659.98 ▲43.42 | 73.39 ▲19.00 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.25 ▲0.05 | 96.73 ▲0.20 | 41.74 ▼2.02 |
All Docs /wp-admin/edit.php?post_type=doc | 1,098 | 2.37 | 37.89 | 28.10 |
Add New /wp-admin/post-new.php?post_type=doc | 2,325 | 7.68 | 181.85 | 62.78 |
Categories /wp-admin/edit-tags.php?taxonomy=doc_category&post_type=doc | 1,300 | 2.15 | 26.90 | 26.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_docu_widget
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function docu_get_prevnext_links() in wp-content/plugins/docu/templates/docu-prevnext-nav.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/docu/templates/docu-search-form.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/docu/templates/docu-index.php:12
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Docu Index page), #2 (Docu Single document), #3 (Docu Single in admin), #4 (Docu Sidebar Widget)
docu/docu.php Passed 13 tests
The principal PHP file in "Docu" v. 1.5 is loaded by WordPress automatically on each request
29 characters long description:
A simple Documentation Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,320 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 470 | 235 | 789 |
CSS | 2 | 63 | 20 | 379 |
PO File | 1 | 30 | 31 | 79 |
JavaScript | 6 | 56 | 6 | 73 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 12 | 60.00% |
▷ Protected methods | 6 | 30.00% |
▷ Private methods | 2 | 10.00% |
Functions | 29 | |
▷ Named functions | 29 | 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 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected