Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▲333.66ms] 75% from 4 tests
Analyzing server-side resources used by FAQ Accordion
Please have a look at the following items
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 333.66ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 406.88 ▲365.36 |
Dashboard /wp-admin | 3.46 ▲0.11 | 373.18 ▲312.28 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 302.14 ▲255.75 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 492.42 ▲401.26 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 506.37 ▲474.35 |
Server storage [IO: ▲12.82MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widgetic/secret |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for FAQ Accordion
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,009 ▲2,263 | 29.59 ▲15.45 | 101.31 ▲99.37 | 32.54 ▼12.66 |
Dashboard /wp-admin | 3,582 ▲1,391 | 12.74 ▲7.79 | 242.71 ▲131.44 | 82.33 ▲40.44 |
Posts /wp-admin/edit.php | 3,390 ▲1,301 | 12.84 ▲10.84 | 166.78 ▲132.23 | 38.72 ▲3.03 |
Add New Post /wp-admin/post-new.php | 2,508 ▲966 | 29.22 ▲10.88 | 820.50 ▲210.43 | 41.53 ▼7.00 |
Media Library /wp-admin/upload.php | 1,778 ▲390 | 11.66 ▲7.46 | 226.97 ▲122.18 | 40.47 ▼3.92 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widgetic/secret
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Good news, no errors were detected
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/faq-accordion-by-widgetic/block.php:110
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/faq-accordion-by-widgetic/dashboard.php:4
- > PHP Notice
Undefined variable: blockPath in wp-content/plugins/faq-accordion-by-widgetic/block.php on line 29
- > PHP Notice
Undefined variable: widgetMeta in wp-content/plugins/faq-accordion-by-widgetic/block.php on line 29
- > PHP Notice
Undefined variable: blockWidgetId in wp-content/plugins/faq-accordion-by-widgetic/block.php on line 29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
faq-accordion-by-widgetic/index.php 92% from 13 tests
The main PHP script in "FAQ Accordion" version 1.0.35 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("faq-accordion-by-widgetic.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,378 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 753 |
CSS | 3 | 74 | 58 | 432 |
PHP | 4 | 30 | 55 | 170 |
SVG | 1 | 0 | 0 | 21 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.84MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 3.99KB | 1.25KB | ▼ 68.72% |
assets/screenshot-3.png | 198.26KB | 207.99KB | 0.00% |
assets/screenshot-2.png | 592.98KB | 192.66KB | ▼ 67.51% |
assets/banner-1544x500.png | 26.23KB | 7.22KB | ▼ 72.46% |
assets/widgetic_icon.png | 1.94KB | 2.03KB | 0.00% |