10% responsive-bit-testimonials-manager

Code Review | Responsive Bit Announcement Manager

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

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /998 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/responsive-bit-testimonials-manager/responsivebit_testimonials.php+515
    Function create_function() is deprecated

Server metrics [RAM: ▼1.81MB] [CPU: ▼66.34ms] Passed 4 tests

A check of server-side resources used by Responsive Bit Announcement Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼1.275.78 ▼45.73
Dashboard /wp-admin2.21 ▼1.137.41 ▼58.37
Posts /wp-admin/edit.php2.21 ▼1.146.99 ▼49.23
Add New Post /wp-admin/post-new.php2.21 ▼3.676.89 ▼112.01
Media Library /wp-admin/upload.php2.21 ▼1.025.91 ▼30.76
Tesimonials Style /wp-admin/edit.php?post_type=rb-testimonials&page=responsive_bit_testimonials_style2.215.71
Add New /wp-admin/post-new.php?post_type=rb-testimonials2.217.11
Testimonials /wp-admin/edit.php?post_type=rb-testimonials2.217.38
Testimonials usage guide /wp-admin/edit.php?post_type=rb-testimonials&page=responsive_bit_testimonials_guide2.216.68

Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_responsivebit_testimonial_widget
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Responsive Bit Announcement Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14514.28 ▲0.011.92 ▲0.1739.97 ▼3.13
Dashboard /wp-admin2,270 ▲905.58 ▲0.0191.08 ▼2.3275.19 ▲35.48
Posts /wp-admin/edit.php2,143 ▲392.04 ▲0.0939.49 ▼11.3334.62 ▼15.08
Add New Post /wp-admin/post-new.php1,631 ▲10521.59 ▼1.45657.89 ▲54.3429.76 ▼23.83
Media Library /wp-admin/upload.php1,443 ▲404.19 ▼0.0497.91 ▼1.5642.55 ▼0.19
Tesimonials Style /wp-admin/edit.php?post_type=rb-testimonials&page=responsive_bit_testimonials_style1,0012.1528.2629.82
Add New /wp-admin/post-new.php?post_type=rb-testimonials2,3047.68169.0362.92
Testimonials /wp-admin/edit.php?post_type=rb-testimonials1,1241.9730.6330.09
Testimonials usage guide /wp-admin/edit.php?post_type=rb-testimonials&page=responsive_bit_testimonials_guide8562.0125.6427.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/responsive-bit-testimonials-manager/responsivebit_testimonials.php+515
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_responsivebit_testimonial_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=rb-testimonials&page=responsive_bit_testimonials_guide
    • > Deprecated in wp-content/plugins/responsive-bit-testimonials-manager/responsivebit_testimonials.php+515
    Function create_function() is deprecated
    • > GET request to /wp-admin/post-new.php?post_type=rb-testimonials
    • > Notice in wp-content/plugins/responsive-bit-testimonials-manager/responsivebit_testimonials.php+311
    Undefined index: testimonial_meta_noncename

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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/responsive-bit-testimonials-manager/responsivebit_testimonials.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=rb-testimonials&page=responsive_bit_testimonials_guide
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'farbtastic')" "TypeError: Cannot read properties of undefined (reading 'farbtastic')\n at $.farbtastic (/wp-admin/js/farbtastic.js?ver=1.2:22:20)\n at $.fn.farbtastic (/wp-admin/js/farbtastic.js?ver=1.2:16:5)\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit.php?post_type=rb-testimonials&page=responsive_bit_testimonials_guide:188:30)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?post_type=rb-testimonials&page=responsive_bit_testimonials_guide
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'farbtastic')

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Showing the add item for Testimonials.), #2 (Showing admin screen for Testimonials.), #3 (Showing the screen for Testimonials color.)
You can take inspiration from this readme.txt

responsive-bit-testimonials-manager/responsivebit_testimonials.php 85% from 13 tests

Analyzing the main PHP file in "Responsive Bit Announcement Manager" version 1.0
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 187 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("responsive-bit-testimonials-manager.php" instead of "responsivebit_testimonials.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
No dangerous file extensions were detected455 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16836427
CSS16028

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity19.50
▷ Minimum class complexity12.00
▷ Maximum class complexity27.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.PNG49.75KB18.08KB▼ 63.65%
screenshot-3.PNG15.46KB6.32KB▼ 59.11%
pull-quote.png0.50KB0.61KB0.00%
menu-icon.png6.24KB2.66KB▼ 57.37%
screenshot-1.png3.88KB2.51KB▼ 35.36%