Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.98MB] [CPU: ▲1.03ms] Passed 4 tests
An overview of server-side resources used by WP Document Revisions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.81 | 41.62 ▲1.48 |
Dashboard /wp-admin | 4.34 ▲1.04 | 54.20 ▲5.02 |
Posts /wp-admin/edit.php | 4.39 ▲1.04 | 57.93 ▲8.44 |
Add New Post /wp-admin/post-new.php | 7.01 ▲1.13 | 97.54 ▼10.82 |
Media Library /wp-admin/upload.php | 4.26 ▲1.03 | 43.66 ▲10.26 |
All Documents /wp-admin/edit.php?post_type=document | 4.31 | 52.39 |
Add Document /wp-admin/post-new.php?post_type=document | 4.41 | 63.39 |
Validate Structure /wp-admin/edit.php?post_type=document&page=wpdr_validate | 4.17 | 38.55 |
Workflow States /wp-admin/edit-tags.php?taxonomy=workflow_state&post_type=document | 4.26 | 45.41 |
Server storage [IO: ▲1.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 107 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_wp_document_revisions_recently_revised_widget |
Browser metrics Passed 4 tests
WP Document Revisions: 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,893 ▲136 | 13.20 ▼1.60 | 4.44 ▲2.66 | 40.95 ▲0.89 |
Dashboard /wp-admin | 2,278 ▲90 | 5.90 ▲0.06 | 103.37 ▼8.85 | 73.06 ▲26.39 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.01 ▲0.01 | 37.94 ▼2.54 | 33.26 ▼1.59 |
Add New Post /wp-admin/post-new.php | 6,452 ▲4,924 | 28.78 ▲10.47 | 951.97 ▲343.63 | 40.96 ▼11.84 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.24 ▼0.08 | 96.52 ▼1.58 | 71.63 ▲26.26 |
All Documents /wp-admin/edit.php?post_type=document | 1,246 | 2.21 | 29.43 | 32.81 |
Add Document /wp-admin/post-new.php?post_type=document | 2,491 | 7.70 | 162.90 | 125.69 |
Validate Structure /wp-admin/edit.php?post_type=document&page=wpdr_validate | 926 | 2.25 | 29.18 | 26.15 |
Workflow States /wp-admin/edit-tags.php?taxonomy=workflow_state&post_type=document | 1,522 | 2.14 | 26.05 | 35.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_wp_document_revisions_recently_revised_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wp-document-revisions/includes/class-wp-document-revisions.php:118
- > PHP Fatal error
Uncaught Error: Class 'WP_Document_Revisions' not found in wp-content/plugins/wp-document-revisions/includes/revision-feed.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-document-revisions/includes/class-wp-document-revisions-recently-revised-widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Tags: You are using too many tags: 14 tag instead of maximum 10
wp-document-revisions/wp-document-revisions.php 85% from 13 tests
The main PHP file in "WP Document Revisions" ver. 3.5.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "4.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin21,212 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 32 | 6,792 | 7,627 | 14,319 |
PHP | 9 | 995 | 2,681 | 4,332 |
JavaScript | 10 | 54 | 55 | 1,243 |
Markdown | 16 | 447 | 0 | 769 |
Bourne Again Shell | 4 | 43 | 57 | 212 |
CoffeeScript | 1 | 60 | 31 | 136 |
CSS | 4 | 11 | 6 | 68 |
YAML | 3 | 5 | 0 | 49 |
XML | 1 | 0 | 0 | 32 |
Bourne Shell | 6 | 18 | 0 | 30 |
Ruby | 1 | 6 | 1 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 114.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 186 | |
▷ Static methods | 14 | 7.53% |
▷ Public methods | 176 | 94.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 5.38% |
Functions | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon64.png | 0.91KB | 0.77KB | ▼ 14.87% |
img/icon32.png | 0.60KB | 0.50KB | ▼ 17.43% |
screenshot-1.png | 59.46KB | 29.39KB | ▼ 50.58% |
img/menu-icon.png | 1.07KB | 0.15KB | ▼ 86.00% |