Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.38ms] Passed 4 tests
A check of server-side resources used by DoC8
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.85 ▲2.40 |
Dashboard /wp-admin | 3.36 ▲0.06 | 63.08 ▲13.44 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 50.15 ▲1.09 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 87.27 ▼6.03 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.71 ▼6.99 |
Settings /wp-admin/edit.php?post_type=docu&page=settings | 3.25 | 31.14 |
Documents /wp-admin/edit.php?post_type=docu | 3.33 | 40.46 |
Add New /wp-admin/post-new.php?post_type=docu | 3.43 | 50.75 |
Server storage [IO: ▲6.79MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 380 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
DoC8: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.23 ▼0.14 | 2.02 ▲0.36 | 43.35 ▲3.28 |
Dashboard /wp-admin | 2,226 ▲48 | 5.58 ▼0.05 | 103.37 ▼4.85 | 49.88 ▲6.89 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.97 ▲0.01 | 43.49 ▲8.73 | 35.47 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 18.28 ▼4.97 | 652.08 ▼37.93 | 67.26 ▲16.39 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.21 ▲0.05 | 102.60 ▼11.88 | 46.04 ▼3.81 |
Settings /wp-admin/edit.php?post_type=docu&page=settings | 955 | 2.02 | 24.31 | 30.54 |
Documents /wp-admin/edit.php?post_type=docu | 1,104 | 1.97 | 29.75 | 30.38 |
Add New /wp-admin/post-new.php?post_type=docu | 2,378 | 7.59 | 164.94 | 74.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- 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 | 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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_setting() in wp-content/plugins/doc8/inc/class-doc8-settings.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/doc8/templates/archive-standard.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/doc8/templates/content-single-document.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires at least: Invalid plugin version format
doc8/doc8.php 85% from 13 tests
The principal PHP file in "DoC8" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 155 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 plugin1,465 lines of code in 377 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 206 | 291 | 815 |
JavaScript | 361 | 40 | 14 | 494 |
CSS | 4 | 13 | 10 | 156 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 2 | 8.33% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 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
PNG images were not found in this plugin