Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.92ms] Passed 4 tests
This is a short check of server-side resources used by WP Easy FAQs
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.71 ▲1.50 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.29 ▼1.23 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.27 ▼1.80 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.08 ▼16.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 31.98 ▼4.10 |
All FAQs /wp-admin/edit.php?post_type=wp_faq | 3.31 | 34.69 |
Add New /wp-admin/post-new.php?post_type=wp_faq | 3.35 | 39.13 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Easy FAQs
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲192 | 13.64 ▼0.65 | 8.84 ▲7.15 | 41.69 ▲2.13 |
Dashboard /wp-admin | 2,230 ▲42 | 5.79 ▲0.92 | 105.73 ▲2.07 | 40.09 ▼3.72 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.01 ▲0.00 | 39.46 ▲2.23 | 35.77 ▲5.73 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.04 ▲2.17 | 651.47 ▼22.20 | 49.25 ▼6.85 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.19 ▼0.09 | 97.43 ▼14.00 | 41.39 ▼3.04 |
All FAQs /wp-admin/edit.php?post_type=wp_faq | 1,087 | 1.98 | 33.85 | 28.41 |
Add New /wp-admin/post-new.php?post_type=wp_faq | 2,774 | 4.18 | 109.66 | 96.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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wp_faq
- > Notice in wp-content/plugins/wp-easy-faqs/admin/partials/wp-easy-faqs-content.php+60
Undefined variable: index
SRP 0% 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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-easy-faqs/public/css/dynamic.css.php
- > /wp-content/plugins/wp-easy-faqs/public/partials/wp-easy-faqs-public-display.php
- > /wp-content/plugins/wp-easy-faqs/admin/partials/wp-easy-faqs-admin-display.php
- 48× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: atts in wp-content/plugins/wp-easy-faqs/public/css/dynamic.css.php on line 88
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-easy-faqs/public/css/dynamic.css.php on line 50
- > PHP Notice
Undefined variable: atts in wp-content/plugins/wp-easy-faqs/public/css/dynamic.css.php on line 38
- > PHP Notice
Undefined variable: atts in wp-content/plugins/wp-easy-faqs/public/css/dynamic.css.php on line 108
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-easy-faqs/public/css/dynamic.css.php on line 123
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-easy-faqs/public/css/dynamic.css.php on line 49
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-easy-faqs/admin/partials/wp-easy-faqs-content.php:14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-easy-faqs/public/css/dynamic.css.php on line 62
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-easy-faqs/public/css/dynamic.css.php on line 67
- > PHP Notice
Undefined variable: atts in wp-content/plugins/wp-easy-faqs/public/css/dynamic.css.php on line 93
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-easy-faqs/wp-easy-faqs.php Passed 13 tests
"WP Easy FAQs" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
Creating FAQs for your site has never been this easy!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,268 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 126 | 42 | 1,000 |
PHP | 19 | 495 | 730 | 945 |
JavaScript | 5 | 165 | 32 | 323 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 33 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.38% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/right-down.png | 1.10KB | 0.31KB | ▼ 72.20% |
admin/images/left-down.png | 1.07KB | 0.29KB | ▼ 72.96% |
admin/images/docico.png | 7.15KB | 3.26KB | ▼ 54.48% |
admin/images/plugin.png | 10.22KB | 4.68KB | ▼ 54.23% |
admin/images/ui-icons_222222_256x240.png | 6.68KB | 4.20KB | ▼ 37.05% |