Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.65MB] [CPU: ▲6.37ms] Passed 4 tests
Server-side resources used by Simply Documents
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.83 ▲1.37 | 48.34 ▲5.62 |
Dashboard /wp-admin | 5.07 ▲1.77 | 62.24 ▲10.37 |
Posts /wp-admin/edit.php | 5.12 ▲1.77 | 59.71 ▲6.57 |
Add New Post /wp-admin/post-new.php | 7.64 ▲1.75 | 96.30 ▲2.93 |
Media Library /wp-admin/upload.php | 4.94 ▲1.71 | 52.36 ▲13.96 |
Document Types /wp-admin/edit.php?post_type=simply_document_type | 4.97 | 52.52 |
Add New /wp-admin/post-new.php?post_type=simply_documents | 5.18 | 67.12 |
Add-ons /wp-admin/edit.php?post_type=acf&page=acf-addons | 4.90 | 44.18 |
Export /wp-admin/edit.php?post_type=acf&page=acf-export | 4.90 | 45.63 |
Custom Fields /wp-admin/edit.php?post_type=acf | 5.08 | 52.63 |
Dashboard /wp-admin/admin.php?page=simply_dashboard_admin_page | 4.90 | 42.23 |
Documents /wp-admin/edit.php?post_type=simply_documents | 4.97 | 40.19 |
Server storage [IO: ▲3.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 144 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
acf_version |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Simply Documents
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲95 | 14.24 ▼0.06 | 1.60 ▼0.43 | 35.58 ▼5.33 |
Dashboard /wp-admin | 2,285 ▲108 | 5.61 ▼0.04 | 93.26 ▼2.49 | 46.24 ▲0.83 |
Posts /wp-admin/edit.php | 2,187 ▲90 | 2.04 ▲0.03 | 32.86 ▼6.31 | 38.54 ▲1.25 |
Add New Post /wp-admin/post-new.php | 6,693 ▲5,167 | 24.87 ▲1.66 | 1,018.60 ▲325.14 | 40.55 ▼32.84 |
Media Library /wp-admin/upload.php | 1,487 ▲87 | 4.17 ▲0.01 | 104.37 ▼6.77 | 54.14 ▲9.08 |
Document Types /wp-admin/edit.php?post_type=simply_document_type | 1,137 | 1.97 | 35.02 | 33.79 |
Add New /wp-admin/post-new.php?post_type=simply_documents | 2,633 | 7.95 | 168.99 | 51.92 |
Add-ons /wp-admin/edit.php?post_type=acf&page=acf-addons | 1,092 | 2.19 | 26.01 | 34.14 |
Export /wp-admin/edit.php?post_type=acf&page=acf-export | 1,021 | 2.12 | 21.78 | 33.44 |
Custom Fields /wp-admin/edit.php?post_type=acf | 1,246 | 2.01 | 47.93 | 44.54 |
Dashboard /wp-admin/admin.php?page=simply_dashboard_admin_page | 981 | 1.99 | 22.11 | 29.65 |
Documents /wp-admin/edit.php?post_type=simply_documents | 1,183 | 1.96 | 30.35 | 29.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- acf_version
- db_upgraded
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 43× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simply-documents/lib/advanced-custom-fields/core/controllers/upgrade.php:25
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/simply-documents/lib/advanced-custom-fields/core/fields/google-map.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/simply-documents/lib/advanced-custom-fields/core/fields/post_object.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simply-documents/lib/advanced-custom-fields/core/controllers/export.php:32
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/simply-documents/lib/advanced-custom-fields/core/fields/email.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/simply-documents/lib/advanced-custom-fields/core/fields/radio.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/simply-documents/lib/advanced-custom-fields/core/fields/taxonomy.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/simply-documents/lib/advanced-custom-fields/core/fields/checkbox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simply-documents/simply-documents.php:62
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/simply-documents/lib/advanced-custom-fields/core/fields/number.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: format content, documents, document types, table, list documents
simply-documents/simply-documents.php 92% from 13 tests
"Simply Documents" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 225 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected37,981 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 24 | 9,701 | 14,112 | 21,302 |
PHP | 46 | 4,237 | 4,812 | 9,835 |
JavaScript | 6 | 2,120 | 1,592 | 4,139 |
CSS | 7 | 843 | 564 | 2,705 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 24.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 286 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 286 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 59 | |
▷ Named functions | 59 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
22 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/advanced-custom-fields/core/fields/date_picker/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
lib/advanced-custom-fields/core/fields/date_picker/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
lib/advanced-custom-fields/images/sprite.png | 5.94KB | 2.82KB | ▼ 52.51% |
lib/advanced-custom-fields/images/sprite@2x.png | 12.53KB | 4.91KB | ▼ 60.81% |
lib/advanced-custom-fields/images/arrows.png | 0.24KB | 0.24KB | 0.00% |