84% simple-testimonial

Code Review | Simple Testimonial

WordPress plugin Simple Testimonial scored84%from 54 tests.

About plugin

  • Plugin page: simple-testimonial
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.6
  • WordPress version: 6.3.1
  • First release: Nov 25, 2013
  • Latest release: Dec 11, 2013
  • Number of updates: 8
  • Update frequency: every 2.0 days
  • Top authors: nitinmaurya12 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.02ms] Passed 4 tests

An overview of server-side resources used by Simple Testimonial
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.15 ▼7.68
Dashboard /wp-admin3.32 ▲0.0248.12 ▼3.38
Posts /wp-admin/edit.php3.38 ▲0.0252.54 ▼2.06
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.83 ▼10.95
Media Library /wp-admin/upload.php3.25 ▲0.0236.96 ▼0.06
Add New /wp-admin/post-new.php?post_type=testimonial3.3748.34
All Testimonial /wp-admin/edit.php?post_type=testimonial3.2937.92

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Simple Testimonial
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.30 ▼0.061.67 ▼0.4239.41 ▼4.44
Dashboard /wp-admin2,225 ▲545.61 ▼0.0494.30 ▲3.9738.93 ▼7.71
Posts /wp-admin/edit.php2,127 ▲242.09 ▲0.1040.90 ▲0.4835.64 ▼3.79
Add New Post /wp-admin/post-new.php1,549 ▲2323.15 ▼0.08667.50 ▲12.2854.33 ▼10.18
Media Library /wp-admin/upload.php1,427 ▲274.19 ▲0.0095.68 ▼21.4543.45 ▼5.83
Add New /wp-admin/post-new.php?post_type=testimonial2,1907.62168.9062.81
All Testimonial /wp-admin/edit.php?post_type=testimonial1,0971.9831.4529.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-testimonial/simple-testimonial.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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: Add images for these screenshots: #1 (Creating the Testimonial), #2 (How will testimonial show at frontend.)
The official readme.txt might help

simple-testimonial/simple-testimonial.php Passed 13 tests

The principal PHP file in "Simple Testimonial" v. 1.0 is loaded by WordPress automatically on each request
34 characters long description:
A brief description of the Plugin.

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 detected73 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141173

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png21.20KB10.43KB▼ 50.81%
screenshot-1.png141.21KB44.35KB▼ 68.59%