84% corporate-testimonials

Code Review | Corporate Testimonials powered by ASSIST

WordPress plugin Corporate Testimonials powered by ASSIST scored84%from 54 tests.

About plugin

  • Plugin page: corporate-testimo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 26, 2016
  • Latest release: Sep 26, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: assistsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /487 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.94ms] Passed 4 tests

An overview of server-side resources used by Corporate Testimonials powered by ASSIST
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.73 ▼5.36
Dashboard /wp-admin3.35 ▲0.0547.88 ▼5.48
Posts /wp-admin/edit.php3.41 ▲0.0452.27 ▼6.25
Add New Post /wp-admin/post-new.php5.94 ▲0.0491.29 ▼2.66
Media Library /wp-admin/upload.php3.28 ▲0.0436.42 ▼0.43
Testimonial Page /wp-admin/edit.php?post_type=testimoniale3.3230.35
Add New /wp-admin/post-new.php?post_type=team3.3949.13
Add New /wp-admin/post-new.php?post_type=testimoniale3.3952.76
Our Team /wp-admin/edit.php?post_type=team3.3239.26

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Corporate Testimonials powered by ASSIST
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲8614.33 ▼0.062.21 ▲0.4238.05 ▼0.58
Dashboard /wp-admin2,232 ▲515.66 ▼0.0796.36 ▼9.0674.46 ▲27.21
Posts /wp-admin/edit.php2,157 ▲541.98 ▲0.0438.95 ▲0.8636.14 ▼1.45
Add New Post /wp-admin/post-new.php1,576 ▲4523.05 ▼0.28782.56 ▲115.7154.87 ▲3.48
Media Library /wp-admin/upload.php1,446 ▲494.17 ▼0.0399.62 ▼1.3067.86 ▲17.13
Testimonial Page /wp-admin/edit.php?post_type=testimoniale1,1191.9634.1232.40
Add New /wp-admin/post-new.php?post_type=team2,3087.53172.34115.36
Add New /wp-admin/post-new.php?post_type=testimoniale2,3087.69159.79118.21
Our Team /wp-admin/edit.php?post_type=team1,1161.9634.6530.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/corporate-testimonials/testimonial-team.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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:
  • Contributors: Contributors not specified
The official readme.txt might help

corporate-testimonials/testimonial-team.php 92% from 13 tests

This is the main PHP file of "Corporate Testimonials powered by ASSIST" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("corporate-testimonials.php" instead of "testimonial-team.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121257

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/teamicon.png0.75KB0.70KB▼ 6.27%
images/testimonial.png0.63KB0.61KB▼ 2.79%