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.46MB] [CPU: ▼4.56ms] Passed 4 tests
Server-side resources used by Smart Docs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.77 | 42.20 ▲4.02 |
Dashboard /wp-admin | 4.01 ▲0.70 | 53.36 ▲6.49 |
Posts /wp-admin/edit.php | 4.07 ▲0.72 | 61.30 ▲13.36 |
Add New Post /wp-admin/post-new.php | 5.67 ▼0.21 | 61.98 ▼35.08 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 42.25 ▲6.34 |
All Docs /wp-admin/edit.php?post_type=smart-docs | 3.99 | 46.09 |
Categories /wp-admin/edit-tags.php?taxonomy=smartdocs_category&post_type=smart-docs | 3.93 | 43.75 |
Settings /wp-admin/edit.php?post_type=smart-docs&page=smart_docs_settings | 3.86 | 41.09 |
Add New /wp-admin/post-new.php?post_type=smart-docs | 5.67 | 58.35 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_smartdocs-categories-widget |
smartdocs_installed_time |
theysaidso_admin_options |
widget_theysaidso_widget |
smartdocs_rewrite_rules_flushed |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smart Docs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,004 ▲269 | 15.21 ▲0.82 | 1.67 ▼0.20 | 42.07 ▼1.95 |
Dashboard /wp-admin | 2,405 ▲217 | 6.49 ▲1.60 | 133.18 ▲23.43 | 43.93 ▲3.54 |
Posts /wp-admin/edit.php | 2,314 ▲228 | 3.56 ▲1.56 | 59.40 ▲24.43 | 37.02 ▲1.75 |
Add New Post /wp-admin/post-new.php | 6,627 ▲5,094 | 29.13 ▲6.09 | 891.44 ▲224.62 | 41.34 ▼20.10 |
Media Library /wp-admin/upload.php | 1,446 ▲58 | 4.22 ▼0.01 | 81.72 ▼17.15 | 39.99 ▼3.72 |
All Docs /wp-admin/edit.php?post_type=smart-docs | 1,339 | 3.58 | 45.21 | 28.48 |
Categories /wp-admin/edit-tags.php?taxonomy=smartdocs_category&post_type=smart-docs | 1,547 | 3.47 | 54.41 | 29.63 |
Settings /wp-admin/edit.php?post_type=smart-docs&page=smart_docs_settings | 1,274 | 12.81 | 229.16 | 31.36 |
Add New /wp-admin/post-new.php?post_type=smart-docs | 6,421 | 21.85 | 801.26 | 34.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_smartdocs-categories-widget
- theysaidso_admin_options
- smartdocs_installed_time
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=smart-docs
- > User deprecated in wp-includes/functions.php+5828
Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead.
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
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/smart-docs/classes/customizer/sections/layout.php on line 12
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/smart-docs/classes/customizer/sections/archive.php on line 12
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/smart-docs/classes/customizer/sections/archive.php:12
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/smart-docs/classes/customizer/sections/breadcrumbs.php:12
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/smart-docs/classes/customizer/sections/single.php on line 12
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/smart-docs/classes/customizer/sections/breakpoints.php:12
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/smart-docs/classes/customizer/sections/hero-section.php:12
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/smart-docs/classes/customizer/sections/single.php:12
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/smart-docs/classes/customizer/sections/breakpoints.php on line 12
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/smart-docs/classes/customizer/sections/hero-section.php on line 12
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: documents, knowledge base, documentation, docs, wiki
smart-docs/smart-docs.php Passed 13 tests
This is the main PHP file of "Smart Docs" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
Knowledge Base and Documentation plugin for WordPress.
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 detected7,049 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 891 | 2,198 | 4,366 |
CSS | 6 | 224 | 42 | 1,354 |
JavaScript | 9 | 243 | 361 | 1,288 |
SVG | 3 | 0 | 0 | 41 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 21.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 122 | |
▷ Static methods | 10 | 8.20% |
▷ Public methods | 92 | 75.41% |
▷ Protected methods | 21 | 17.21% |
▷ Private methods | 9 | 7.38% |
Functions | 51 | |
▷ Named functions | 49 | 96.08% |
▷ Anonymous functions | 2 | 3.92% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/placeholder.png | 6.90KB | 3.33KB | ▼ 51.80% |
assets/images/admin-menu-icon.png | 1.94KB | 1.25KB | ▼ 35.60% |