10% responsive-bit-faq-manager

Code Review | Responsive Bit FAQ Manager

WordPress plugin Responsive Bit FAQ Manager scored10%from 54 tests.

About plugin

  • Plugin page: responsive-bit-fa...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.4
  • WordPress version: 6.3.1
  • First release: Nov 8, 2012
  • Latest release: Nov 8, 2012
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: shafaatbinjaved (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,512 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.385.65 ▼39.57
Dashboard /wp-admin2.11 ▼1.206.64 ▼45.61
Posts /wp-admin/edit.php2.11 ▼1.256.54 ▼48.49
Add New Post /wp-admin/post-new.php2.11 ▼3.786.29 ▼104.94
Media Library /wp-admin/upload.php2.11 ▼1.125.51 ▼30.81
FAQ's usage guide /wp-admin/edit.php?post_type=questions_answers&page=qa_guide2.116.14
FAQs /wp-admin/edit.php?post_type=questions_answers2.116.23
Add New /wp-admin/post-new.php?post_type=questions_answers2.116.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲8314.22 ▼0.361.89 ▲0.0552.20 ▲9.45
Dashboard /wp-admin2,258 ▲815.62 ▼0.05103.27 ▲14.8380.11 ▲38.05
Posts /wp-admin/edit.php2,134 ▲341.96 ▼0.0641.26 ▲5.5739.49 ▲7.05
Add New Post /wp-admin/post-new.php1,552 ▲2623.26 ▲0.18687.97 ▼19.3553.81 ▲1.52
Media Library /wp-admin/upload.php1,431 ▲344.14 ▼0.25102.42 ▼3.1848.85 ▲4.76
FAQ's usage guide /wp-admin/edit.php?post_type=questions_answers&page=qa_guide8421.9928.0540.69
FAQs /wp-admin/edit.php?post_type=questions_answers1,1041.9731.2029.70
Add New /wp-admin/post-new.php?post_type=questions_answers2,1797.50176.4559.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

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)
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP13213166
CSS12011

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 code0.07
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-3.PNG15.55KB6.07KB▼ 60.96%
screenshot-1.png4.96KB3.27KB▼ 34.21%
screenshot-2.PNG7.69KB4.04KB▼ 47.42%