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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.80ms] Passed 4 tests
A check of server-side resources used by CB FAQ Responsive Accordion
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.41 ▼2.32 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.17 ▲0.70 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.29 ▲2.44 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.96 ▼11.23 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.31 ▲1.66 |
Accordions /wp-admin/edit.php?post_type=accordions | 3.29 | 35.36 |
Add New Accordion /wp-admin/post-new.php?post_type=accordions | 3.36 | 46.02 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by CB FAQ Responsive Accordion
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲178 | 13.94 ▼0.45 | 5.00 ▲3.33 | 37.52 ▼9.02 |
Dashboard /wp-admin | 2,230 ▲47 | 4.87 ▼1.03 | 110.18 ▼9.67 | 39.51 ▼1.04 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.03 ▼0.01 | 39.92 ▲4.18 | 35.65 ▲3.22 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.28 ▲0.31 | 660.22 ▲57.35 | 63.45 ▲20.72 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.22 ▲0.05 | 95.03 ▼2.29 | 41.90 ▼4.47 |
Accordions /wp-admin/edit.php?post_type=accordions | 1,089 | 2.02 | 34.85 | 30.08 |
Add New Accordion /wp-admin/post-new.php?post_type=accordions | 2,163 | 7.67 | 167.77 | 59.39 |
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 were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cb-faq-responsive-accordion/index.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: wordpress responsive accordion with faq, wordpress faq, cb responsive accordion, wordpress faq plugin, accordion...
cb-faq-responsive-accordion/index.php 92% from 13 tests
The main PHP script in "CB FAQ Responsive Accordion" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cb-faq-responsive-accordion.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin435 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 188 |
CSS | 1 | 15 | 3 | 176 |
PHP | 1 | 27 | 9 | 63 |
JavaScript | 1 | 8 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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 | 4 | |
▷ Named functions | 4 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/right_arrow.png | 2.91KB | 0.38KB | ▼ 87.03% |