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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.87ms] Passed 4 tests
A check of server-side resources used by FAQ plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.42 ▲0.85 |
Dashboard /wp-admin | 3.37 ▲0.07 | 52.71 ▼1.61 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 58.20 ▲5.64 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 86.59 ▼10.07 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.09 ▼0.63 |
Help /wp-admin/edit.php?post_type=adonide_faq&page=adonide-faq-plugin/core/html-faq-page-postType.php | 3.26 | 39.59 |
New Question /wp-admin/post-new.php?post_type=adonide_faq | 3.44 | 56.20 |
Taxonomies /wp-admin/edit-tags.php?taxonomy=taxonomies&post_type=adonide_faq | 3.29 | 39.52 |
All questions /wp-admin/edit.php?post_type=adonide_faq | 3.34 | 37.17 |
Server storage [IO: ▲0.52MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
faqPage_plugin_signature |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FAQ plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 13.84 ▼0.84 | 10.77 ▲8.26 | 41.46 ▼2.42 |
Dashboard /wp-admin | 2,221 ▲41 | 5.60 ▼0.07 | 86.50 ▼13.98 | 73.27 ▲26.36 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 2.00 ▼0.03 | 38.10 ▲3.25 | 35.25 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,402 ▼124 | 16.69 ▼0.84 | 581.43 ▼95.18 | 51.08 ▼0.07 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.24 ▲0.02 | 105.82 ▲8.33 | 84.29 ▲35.26 |
Help /wp-admin/edit.php?post_type=adonide_faq&page=adonide-faq-plugin/core/html-faq-page-postType.php | 1,044 | 2.66 | 35.30 | 31.71 |
New Question /wp-admin/post-new.php?post_type=adonide_faq | 2,782 | 7.75 | 177.99 | 158.10 |
Taxonomies /wp-admin/edit-tags.php?taxonomy=taxonomies&post_type=adonide_faq | 1,315 | 2.16 | 27.13 | 33.24 |
All questions /wp-admin/edit.php?post_type=adonide_faq | 1,153 | 1.97 | 30.95 | 32.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- faqPage_plugin_signature
- widget_recent-posts
- can_compress_scripts
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/adonide-faq-plugin/core/updateList.php
- > /wp-content/plugins/adonide-faq-plugin/index.php
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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Screenshot #1 (FAQ plugin configuration panel) image required
adonide-faq-plugin/index.php 92% from 13 tests
The principal PHP file in "FAQ plugin" v. 2.2.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("adonide-faq-plugin.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin7,338 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,467 | 1,033 | 6,677 |
PHP | 4 | 25 | 109 | 357 |
PO File | 2 | 91 | 122 | 153 |
CSS | 2 | 1 | 5 | 151 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/images/move.png | 0.56KB | 0.33KB | ▼ 40.42% |
core/images/facebook-ogg-meta-tags.png | 5.17KB | 1.93KB | ▼ 62.60% |
core/images/icon-24.png | 0.97KB | 0.94KB | ▼ 2.22% |
core/images/plug-and-play.png | 4.91KB | 1.75KB | ▼ 64.38% |
core/js/question-btn.png | 0.58KB | 0.67KB | 0.00% |