Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.82ms] Passed 4 tests
A check of server-side resources used by Single Page FAQ
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.68 ▲0.80 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.47 ▼1.21 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 42.70 ▼4.15 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 79.94 ▼9.99 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.22 ▲0.09 |
Single Page FAQ Settings /wp-admin/options-general.php?page=single-page-faq-settings | 3.23 | 30.97 |
Add New FAQ /wp-admin/post-new.php?post_type=single_page_faq | 3.39 | 47.47 |
All FAQ /wp-admin/edit.php?post_type=single_page_faq | 3.31 | 36.16 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
single_page_faq |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Single Page FAQ
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.19 ▼1.40 | 1.72 ▲0.18 | 42.83 ▲0.43 |
Dashboard /wp-admin | 2,237 ▲46 | 5.85 ▼0.03 | 99.94 ▼1.11 | 40.97 ▼2.05 |
Posts /wp-admin/edit.php | 2,102 ▲16 | 2.01 ▲0.01 | 34.41 ▲0.64 | 34.39 ▼4.83 |
Add New Post /wp-admin/post-new.php | 1,546 ▲4 | 23.18 ▲5.08 | 673.23 ▲18.79 | 62.21 ▲12.49 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.14 ▼0.03 | 99.79 ▼9.29 | 43.62 ▼4.14 |
Single Page FAQ Settings /wp-admin/options-general.php?page=single-page-faq-settings | 855 | 2.07 | 24.17 | 28.01 |
Add New FAQ /wp-admin/post-new.php?post_type=single_page_faq | 2,209 | 7.58 | 165.51 | 61.26 |
All FAQ /wp-admin/edit.php?post_type=single_page_faq | 1,121 | 1.93 | 31.52 | 31.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/single-page-faq/single_page_faq.php:36
- > 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 86% from 29 tests
readme.txt 81% 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:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (1st Screenshot shows frontend look of faq section.), #2 (2nd Screenshot shows setting page section.), #3 (3rd Screenshot shows faq page listing in admin.), #4 (4th Screenshot is showing custom sort order value)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== single-page-faq ===
) - Donate link: Please fix this invalid URI: "#"
single-page-faq/single_page_faq.php 92% from 13 tests
The entry point to "Single Page FAQ" version 1.0 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("single-page-faq.php" instead of "single_page_faq.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 detected233 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 33 | 26 | 233 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 11.50KB | 6.14KB | ▼ 46.58% |
assets/screenshot-4.png | 17.73KB | 8.77KB | ▼ 50.53% |
assets/screenshot-1.png | 22.40KB | 10.30KB | ▼ 54.02% |
assets/screenshot-3.png | 44.58KB | 21.99KB | ▼ 50.67% |