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 gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.37ms] Passed 4 tests
An overview of server-side resources used by Related Questions
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.03 ▼3.51 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.43 ▼3.82 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.79 ▼1.24 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.98 ▼0.26 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.18 ▼0.89 |
Samuweb Related Questions /wp-admin/options-general.php?page=samuweb-related-questions-settings | 3.23 | 31.22 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Related Questions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.58 ▼0.82 | 5.28 ▲3.39 | 39.72 ▼0.45 |
Dashboard /wp-admin | 2,210 ▲21 | 4.82 ▼0.12 | 106.98 ▼12.27 | 42.58 ▼3.80 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.01 | 39.86 ▼0.01 | 36.10 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.11 ▲0.02 | 610.10 ▼43.08 | 49.43 ▼8.04 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.29 ▲0.01 | 98.93 ▼5.14 | 42.81 ▼2.17 |
Samuweb Related Questions /wp-admin/options-general.php?page=samuweb-related-questions-settings | 845 | 2.01 | 25.34 | 29.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/samuweb-related-questions/samuweb-related-questions-admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/samuweb-related-questions/samuweb-related-questions.php:109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: seo, related questions, search engine, search engine optimization
samuweb-related-questions/samuweb-related-questions.php 92% from 13 tests
The main PHP script in "Related Questions" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 187 characters long)
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
Success! There were no dangerous files found in this plugin127 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 38 | 76 |
JavaScript | 2 | 6 | 6 | 48 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.33MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
samuweb-related-questions-icon.png | 3.43KB | 0.89KB | ▼ 73.94% |
samuweb-related-questions-snapshot-5.png | 45.93KB | 13.81KB | ▼ 69.94% |
samuweb-related-questions-snapshot-1.png | 41.66KB | 13.74KB | ▼ 67.02% |
samuweb-related-questions-snapshot-3.png | 57.85KB | 19.05KB | ▼ 67.07% |
samuweb-related-questions-snapshot-2.png | 53.21KB | 14.16KB | ▼ 73.39% |