84% material-testimonials

Code Review | Material Testimonials

WordPress plugin Material Testimonials scored84%from 54 tests.

About plugin

  • Plugin page: material-testimon...
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 1, 2018
  • Latest release: Jan 1, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: imdr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /543 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▲0.25ms] Passed 4 tests

A check of server-side resources used by Material Testimonials
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1041.55 ▲2.04
Dashboard /wp-admin3.41 ▲0.1047.41 ▲1.41
Posts /wp-admin/edit.php3.46 ▲0.1050.35 ▼0.44
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.19 ▼0.79
Media Library /wp-admin/upload.php3.33 ▲0.1037.39 ▲0.80
Documentation /wp-admin/edit.php?post_type=testimonials&page=mattesti-doc-page3.3033.81
Add New /wp-admin/post-new.php?post_type=testimonials3.4548.03
All Testimonials /wp-admin/edit.php?post_type=testimonials3.3738.70

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Material Testimonials
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17513.45 ▼0.909.26 ▲7.7138.13 ▼7.89
Dashboard /wp-admin2,229 ▲525.56 ▼0.0690.40 ▼2.3238.59 ▼0.37
Posts /wp-admin/edit.php2,131 ▲281.98 ▼0.0534.14 ▼7.1134.61 ▼2.80
Add New Post /wp-admin/post-new.php1,552 ▲1523.71 ▲5.28615.71 ▼58.7860.27 ▼5.41
Media Library /wp-admin/upload.php1,434 ▲344.25 ▼0.12100.56 ▼6.0445.87 ▼1.07
Documentation /wp-admin/edit.php?post_type=testimonials&page=mattesti-doc-page1,0371.9929.4131.85
Add New /wp-admin/post-new.php?post_type=testimonials2,4297.59174.8472.33
All Testimonials /wp-admin/edit.php?post_type=testimonials1,0921.9631.9029.06

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/material-testimonials/inc/mattesti-shortcode.php:264
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/material-testimonials/material-testimonials.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/material-testimonials/inc/mattesti-post-register.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/material-testimonials/inc/mattesti-post-metabox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/material-testimonials/inc/mattesti-doc-page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
Please fix the following attributes: Please take inspiration from this readme.txt

material-testimonials/material-testimonials.php Passed 13 tests

The main PHP file in "Material Testimonials" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
32 characters long description:
Just an another wordpress plugin

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
Success! There were no dangerous files found in this plugin3,384 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP56317516
CSS3388195
JavaScript1052

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
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
img/default1.png1.80KB1.38KB▼ 23.40%