Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/responsive-bit-faq-manager/responsivebit_faq.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; ResponsiveBitFaq has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼59.65ms] Passed 4 tests
A check of server-side resources used by Responsive Bit FAQ Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 5.65 ▼39.57 |
Dashboard /wp-admin | 2.11 ▼1.20 | 6.64 ▼45.61 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.54 ▼48.49 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.29 ▼104.94 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.51 ▼30.81 |
FAQ's usage guide /wp-admin/edit.php?post_type=questions_answers&page=qa_guide | 2.11 | 6.14 |
FAQs /wp-admin/edit.php?post_type=questions_answers | 2.11 | 6.23 |
Add New /wp-admin/post-new.php?post_type=questions_answers | 2.11 | 6.00 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_responsivebit_faq_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Responsive Bit FAQ Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲83 | 14.22 ▼0.36 | 1.89 ▲0.05 | 52.20 ▲9.45 |
Dashboard /wp-admin | 2,258 ▲81 | 5.62 ▼0.05 | 103.27 ▲14.83 | 80.11 ▲38.05 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.96 ▼0.06 | 41.26 ▲5.57 | 39.49 ▲7.05 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.26 ▲0.18 | 687.97 ▼19.35 | 53.81 ▲1.52 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.14 ▼0.25 | 102.42 ▼3.18 | 48.85 ▲4.76 |
FAQ's usage guide /wp-admin/edit.php?post_type=questions_answers&page=qa_guide | 842 | 1.99 | 28.05 | 40.69 |
FAQs /wp-admin/edit.php?post_type=questions_answers | 1,104 | 1.97 | 31.20 | 29.70 |
Add New /wp-admin/post-new.php?post_type=questions_answers | 2,179 | 7.50 | 176.45 | 59.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/responsive-bit-faq-manager/responsivebit_faq.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; ResponsiveBitFaq has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_responsivebit_faq_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=questions_answers
- > Deprecated in wp-content/plugins/responsive-bit-faq-manager/responsivebit_faq.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; ResponsiveBitFaq has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=questions_answers
- > Deprecated in wp-content/plugins/responsive-bit-faq-manager/responsivebit_faq.php+129
Methods with the same name as their class will not be constructors in a future version of PHP; ResponsiveBit_faq_widget has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=questions_answers
- > Deprecated in wp-content/plugins/responsive-bit-faq-manager/responsivebit_faq.php+209
Function create_function() is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× 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/responsive-bit-faq-manager/responsivebit_faq.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Showing the add item for FAQ's.), #2 (Showing the widget Responsive Bit FAQ.), #3 (Showing the shortcode)
responsive-bit-faq-manager/responsivebit_faq.php 85% from 13 tests
The main PHP file in "Responsive Bit FAQ Manager" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("responsive-bit-faq-manager.php" instead of "responsivebit_faq.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 259 characters long)
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
Good job! No executable or dangerous file extensions detected177 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 13 | 166 |
CSS | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.PNG | 15.55KB | 6.07KB | ▼ 60.96% |
screenshot-1.png | 4.96KB | 3.27KB | ▼ 34.21% |
screenshot-2.PNG | 7.69KB | 4.04KB | ▼ 47.42% |