84% zidithemes-testimonials-block

Code Review | Zidithemes Testimonials

WordPress plugin Zidithemes Testimonials scored84%from 54 tests.

About plugin

  • Plugin page: zidithemes-testim...
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2018
  • Latest release: Jan 2, 2020
  • Number of updates: 5
  • Update frequency: every 96.4 days
  • Top authors: zidithemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /656 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.76ms] Passed 4 tests

This is a short check of server-side resources used by Zidithemes Testimonials
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.19 ▲3.38
Dashboard /wp-admin3.31 ▲0.0150.26 ▼3.54
Posts /wp-admin/edit.php3.36 ▲0.0147.93 ▼2.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.48 ▼13.49
Media Library /wp-admin/upload.php3.24 ▲0.0136.83 ▲0.75

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

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

Browser metrics Passed 4 tests

Zidithemes Testimonials: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.55 ▼0.841.88 ▲0.0142.65 ▼0.79
Dashboard /wp-admin2,209 ▲214.84 ▼1.01102.52 ▼15.3838.80 ▼4.58
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0436.45 ▲2.9531.76 ▼4.74
Add New Post /wp-admin/post-new.php1,531 ▲1723.12 ▲5.56637.69 ▲22.6749.63 ▼1.83
Media Library /wp-admin/upload.php1,385 ▼34.29 ▲0.0498.81 ▼4.1841.31 ▼5.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zidithemes-testimonials-block/inc/index.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
There were no plugin tags found

zidithemes-testimonials-block/zidithemes-testimonials.php 85% from 13 tests

The principal PHP file in "Zidithemes Testimonials" v. 0.0.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("zidithemes-testimonials-block.php" instead of "zidithemes-testimonials.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 detected418 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12711247
CSS2417138
PHP2171633

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin