Benchmarks
Plugin footprint 65% 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: ▲2.14MB] [CPU: ▲22.14ms] Passed 4 tests
This is a short check of server-side resources used by SP Project & Document Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.59 ▲2.12 | 66.39 ▲29.97 |
Dashboard /wp-admin | 5.45 ▲2.15 | 70.88 ▲26.87 |
Posts /wp-admin/edit.php | 5.51 ▲2.16 | 75.29 ▲27.65 |
Add New Post /wp-admin/post-new.php | 8.04 ▲2.15 | 103.69 ▲4.08 |
Media Library /wp-admin/upload.php | 5.35 ▲2.13 | 64.52 ▲30.89 |
Server storage [IO: ▲3.49MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 170 new files
Database: 9 new tables, 17 new options
New tables |
---|
wp_sp_cu_form_entries |
wp_sp_cu_cats |
wp_sp_cu_project |
wp_sp_cu |
wp_sp_cu_meta |
wp_sp_cu_forms |
wp_sp_cu_groups_assign |
wp_sp_cu_groups |
wp_sp_cu_event_log |
New WordPress options |
---|
sp_cdm_cdm_link_version |
sp_client_upload_page |
cdm_protect_dirs |
sp_cdm_cdm_media_version |
sp_cdm_cdm_local_import_version |
sp_client_upload |
widget_recent-comments |
widget_theysaidso_widget |
sp_cdm_recycle_bin_schedule |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SP Project & Document Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,287 ▲501 | 15.30 ▲0.72 | 10.58 ▲8.89 | 43.40 ▲1.69 |
Dashboard /wp-admin | 2,465 ▲294 | 6.21 ▲0.59 | 121.10 ▲28.10 | 43.05 ▲4.14 |
Posts /wp-admin/edit.php | 2,393 ▲293 | 3.46 ▲1.49 | 44.14 ▲7.02 | 28.48 ▼9.65 |
Add New Post /wp-admin/post-new.php | 1,630 ▲102 | 22.88 ▼0.14 | 592.88 ▼47.12 | 34.40 ▼18.43 |
Media Library /wp-admin/upload.php | 1,537 ▲143 | 4.14 ▼0.03 | 81.72 ▼28.11 | 41.08 ▼6.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 tables in the database
- wp_sp_cu_groups
- wp_sp_cu_form_entries
- wp_sp_cu_groups_assign
- wp_sp_cu_cats
- wp_sp_cu_forms
- wp_sp_cu_project
- wp_sp_cu
- wp_sp_cu_meta
- wp_sp_cu_event_log
- This plugin does not fully uninstall, leaving 17 options in the database
- cdm_protect_dirs
- sp_cdm_cdm_local_import_version
- widget_theysaidso_widget
- sp_cdm_recycle_bin_schedule
- cdm_rerun_recycler
- sp_cdm_cdm_link_version
- sp_cdm_cdm_media_version
- theysaidso_admin_options
- sp_cu_event_logger_installer
- widget_recent-posts
- ...
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
Please fix the following items
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sp-client-document-manager/templates/login/login.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sp-client-document-manager/integrated/sp-cdm-local-import/admin/importer.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sp-client-document-manager/admin/virtual-directory.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sp-client-document-manager/user/customizer.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sp-client-document-manager/admin/recycle-bin.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sp-client-document-manager/integrated/sp-cdm-media/user/uploader.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sp-client-document-manager/integrated/sp-cdm-link/index.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sp-client-document-manager/admin/users.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/sp-client-document-manager/templates/file-list/table.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sp-client-document-manager/integrated/sp-cdm-local-import/index.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== sp-client-document-manager ===
)
sp-client-document-manager/cu.php 92% from 13 tests
The entry point to "SP Project & Document Manager" version 4.68 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("sp-client-document-manager.php" instead of "cu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected38,144 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 9 | 5,505 | 10,444 | 12,135 |
PHP | 44 | 5,209 | 1,100 | 10,931 |
JSON | 2 | 0 | 0 | 10,131 |
JavaScript | 18 | 969 | 635 | 2,479 |
CSS | 11 | 508 | 125 | 2,468 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 30.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 4.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 247 | |
▷ Static methods | 12 | 4.86% |
▷ Public methods | 240 | 97.17% |
▷ Protected methods | 4 | 1.62% |
▷ Private methods | 3 | 1.21% |
Functions | 158 | |
▷ Named functions | 158 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 16 | 66.67% |
▷ Class constants | 8 | 33.33% |
▷ Public constants | 8 | 100.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
64 PNG files occupy 0.23MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/types/picture.png | 0.59KB | 0.69KB | 0.00% |
images/types/ruby.png | 0.61KB | 0.65KB | 0.00% |
images/folder-add-icon.png | 3.26KB | 0.74KB | ▼ 77.38% |
integrated/sp-cdm-link/images/url.png | 15.38KB | 5.79KB | ▼ 62.35% |
css/smoothness.1.12/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.32KB | 0.18KB | ▼ 44.00% |