Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.07MB] [CPU: ▼12.76ms] Passed 4 tests
Analyzing server-side resources used by Drafts of Post Revisions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.41 ▼0.86 |
Dashboard /wp-admin | 3.29 ▼0.01 | 32.33 ▼18.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 35.08 ▼10.25 |
Add New Post /wp-admin/post-new.php | 5.53 ▼0.35 | 74.34 ▼17.43 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 30.34 ▼4.63 |
Drafts of Revisions /wp-admin/options-general.php?page=dpr_options | 3.27 | 27.97 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
dpr_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Drafts of Post Revisions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.19 ▼0.95 | 1.75 ▼0.04 | 47.42 ▲2.60 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▲1.00 | 96.65 ▼22.54 | 42.13 ▼5.30 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.05 | 34.96 ▼3.41 | 34.13 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.11 ▲5.47 | 640.40 ▼45.59 | 65.36 ▲5.56 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.06 | 98.66 ▼2.89 | 41.78 ▼4.61 |
Drafts of Revisions /wp-admin/options-general.php?page=dpr_options | 841 | 2.06 | 24.09 | 28.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dpr_options
- > Deprecated in wp-content/plugins/drafts-of-post-revisions/core.php+268
Function create_function() is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/drafts-of-post-revisions/Mustache/Loader/ArrayLoader.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/drafts-of-post-revisions/draft-revisions.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/drafts-of-post-revisions/Mustache/Loader/StringLoader.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/drafts-of-post-revisions/Mustache/Loader/FilesystemLoader.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Draft revisions organized in edit.php under their own custom post status)
drafts-of-post-revisions/draft-revisions.php 92% from 13 tests
"Drafts of Post Revisions" version 0.8.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("drafts-of-post-revisions.php" instead of "draft-revisions.php")
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
Success! There were no dangerous files found in this plugin1,717 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 396 | 1,207 | 1,568 |
HTML | 8 | 20 | 0 | 84 |
Markdown | 1 | 19 | 0 | 44 |
JavaScript | 1 | 12 | 3 | 21 |
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.31 |
Average class complexity | 10.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 2 | 11.76% |
▷ Concrete classes | 15 | 88.24% |
▷ Final classes | 0 | 0.00% |
Methods | 151 | |
▷ Static methods | 13 | 8.61% |
▷ Public methods | 116 | 76.82% |
▷ Protected methods | 4 | 2.65% |
▷ Private methods | 31 | 20.53% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 36 | 100.00% |
▷ Public constants | 36 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.60MB with 0.42MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 132.00KB | 38.41KB | ▼ 70.90% |
screenshot-4.png | 106.88KB | 31.16KB | ▼ 70.85% |
screenshot-2.png | 182.49KB | 62.14KB | ▼ 65.95% |
screenshot-1.png | 196.59KB | 63.65KB | ▼ 67.63% |