Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.39ms] Passed 4 tests
An overview of server-side resources used by WP Faq Builder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.80 ▼0.29 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.59 ▼1.71 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 43.51 ▼2.78 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 94.79 ▼11.80 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.30 ▼1.27 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Faq Builder
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲144 | 13.27 ▼1.00 | 1.66 ▲0.12 | 44.06 ▲6.46 |
Dashboard /wp-admin | 2,289 ▲101 | 5.89 ▼0.01 | 109.78 ▼1.47 | 42.63 ▲2.60 |
Posts /wp-admin/edit.php | 2,168 ▲76 | 2.02 ▲0.01 | 33.40 ▼7.19 | 34.55 ▼1.60 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.37 ▲0.28 | 655.45 ▲12.55 | 54.89 ▲2.57 |
Media Library /wp-admin/upload.php | 1,470 ▲85 | 4.31 ▲0.12 | 97.80 ▼6.15 | 44.71 ▼0.31 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-faq-builder/views/admin_view.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-faq-builder/views/render_view.php:85
- > PHP Notice
Undefined variable: config in wp-content/plugins/wp-faq-builder/views/render_view.php on line 12
- > PHP Notice
Undefined variable: config in wp-content/plugins/wp-faq-builder/views/render_view.php on line 14
- > PHP Notice
Undefined variable: config in wp-content/plugins/wp-faq-builder/views/render_view.php on line 13
- > PHP Notice
Undefined variable: config in wp-content/plugins/wp-faq-builder/views/render_view.php on line 15
- > PHP Notice
Undefined variable: config in wp-content/plugins/wp-faq-builder/views/render_view.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires php: Version format is invalid
wp-faq-builder/wp-faq-builder.php 85% from 13 tests
This is the main PHP file of "WP Faq Builder" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin496 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 106 | 24 | 456 |
SVG | 1 | 1 | 0 | 30 |
JSON | 1 | 0 | 0 | 6 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 2.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 17 | 60.71% |
▷ Public methods | 24 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.29% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/fluent-icon.png | 8.98KB | 5.26KB | ▼ 41.43% |
public/img/support.png | 3.11KB | 3.19KB | 0.00% |
public/img/bug.png | 2.95KB | 3.09KB | 0.00% |