83% b3p-responsive-testimonial

Code Review | B3P Testimonial

WordPress plugin B3P Testimonial scored83%from 54 tests.

About plugin

  • Plugin page: b3p-responsive-te...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2014
  • Latest release: Mar 10, 2015
  • Number of updates: 7
  • Update frequency: every 11.1 days
  • Top authors: shafayatg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /704 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.87ms] Passed 4 tests

An overview of server-side resources used by B3P Testimonial
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.99 ▼1.89
Dashboard /wp-admin3.35 ▲0.0448.14 ▼4.64
Posts /wp-admin/edit.php3.40 ▲0.0449.43 ▼6.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.15 ▼6.48
Media Library /wp-admin/upload.php3.27 ▲0.0436.84 ▲0.75
Add New /wp-admin/post-new.php?post_type=b3p-testimonial3.3961.23
Testimonials /wp-admin/edit.php?post_type=b3p-testimonial3.3131.39

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for B3P Testimonial
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,070 ▲30913.95 ▼0.4020.91 ▲19.2449.28 ▲5.92
Dashboard /wp-admin2,222 ▲425.52 ▼0.2090.85 ▼1.2340.28 ▼1.04
Posts /wp-admin/edit.php2,130 ▲302.04 ▲0.0839.40 ▲2.6437.88 ▼3.75
Add New Post /wp-admin/post-new.php1,552 ▲2423.41 ▲0.12669.69 ▲6.9465.53 ▲11.68
Media Library /wp-admin/upload.php1,421 ▲184.14 ▼0.07100.01 ▼12.1342.25 ▼5.90
Add New /wp-admin/post-new.php?post_type=b3p-testimonial2,2447.54174.1473.47
Testimonials /wp-admin/edit.php?post_type=b3p-testimonial1,0941.9837.2831.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/b3p-responsive-testimonial/testmonial_type.php:31
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/b3p-responsive-testimonial/b3p-testimonial.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/b3p-responsive-testimonial/b3p-testimonial.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === b3p-responsive-testimonial === )
  • Donate link: Invalid URI found ("b3psolution.com")
You can look at the official readme.txt

b3p-responsive-testimonial/b3p-testimonial.php 92% from 13 tests

The principal PHP file in "B3P Testimonial" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("b3p-responsive-testimonial.php" instead of "b3p-testimonial.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 detected1,188 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
js/icon.png3.38KB0.84KB▼ 75.17%