Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲0.12ms] Passed 4 tests
This is a short check of server-side resources used by Categorized Simple FAQ Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.73 ▲1.90 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.56 ▼1.39 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.73 ▲1.45 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.08 ▼1.48 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.35 ▲3.01 |
All FAQ /wp-admin/edit.php?post_type=simfaq | 3.31 | 39.53 |
Category /wp-admin/edit-tags.php?taxonomy=simfaq_texonamy&post_type=simfaq | 3.26 | 31.80 |
Add New /wp-admin/post-new.php?post_type=simfaq | 3.39 | 50.52 |
Settings /wp-admin/edit.php?post_type=simfaq&page=simfaq-designs | 3.23 | 29.97 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Categorized Simple FAQ Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲87 | 13.29 ▼1.02 | 2.12 ▲0.11 | 37.54 ▼2.98 |
Dashboard /wp-admin | 2,243 ▲55 | 5.90 ▲1.04 | 107.19 ▲2.27 | 41.74 ▲0.84 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.00 ▼0.03 | 39.69 ▲3.92 | 36.38 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,564 ▲50 | 23.13 ▲5.51 | 590.88 ▼70.48 | 54.86 ▲0.85 |
Media Library /wp-admin/upload.php | 1,428 ▲46 | 4.23 ▼0.02 | 97.15 ▼2.17 | 46.63 ▲4.63 |
All FAQ /wp-admin/edit.php?post_type=simfaq | 1,107 | 1.93 | 31.35 | 25.69 |
Category /wp-admin/edit-tags.php?taxonomy=simfaq_texonamy&post_type=simfaq | 1,282 | 2.14 | 26.10 | 26.43 |
Add New /wp-admin/post-new.php?post_type=simfaq | 2,287 | 7.62 | 166.11 | 63.78 |
Settings /wp-admin/edit.php?post_type=simfaq&page=simfaq-designs | 821 | 2.05 | 24.46 | 23.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== categorized-simple-faq ===
) - Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8 in categorized-simple-faq/assets to your readme.txt
categorized-simple-faq/init.php 85% from 13 tests
The principal PHP file in "Categorized Simple FAQ Plugin" v. 1... is loaded by WordPress automatically on each request
The following require your attention:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1...")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("categorized-simple-faq.php" instead of "init.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
There were no executable files found in this plugin565 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 24 | 7 | 230 |
JavaScript | 1 | 67 | 0 | 223 |
CSS | 2 | 3 | 3 | 112 |
PHP code Passed 2 tests
An short overview of 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.19 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/minus.png | 2.48KB | 2.20KB | ▼ 11.50% |
images/plus.png | 4.93KB | 4.93KB | 0.00% |
images/question.png | 17.57KB | 10.67KB | ▼ 39.30% |