94% testimonial-post-type

Code Review | Testimonial Post type

WordPress plugin Testimonial Post type scored 94% from 54 tests.

About plugin

  • Plugin page: testimonial-post-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.1
  • WordPress version: 5.8.1
  • First release: Jun 9, 2017
  • Latest release: Mar 30, 2019
  • Number of updates: 15
  • Update frequency: every 44.0 days
  • Top authors: juiiee8487 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,371 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.18MB] [CPU: ▼140.66ms] Passed 4 tests

Analyzing server-side resources used by Testimonial Post type
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.00 ▲0.2838.38 ▲16.50
Dashboard /wp-admin3.22 ▲0.1745.56 ▼0.18
Posts /wp-admin/edit.php3.33 ▲0.2341.33 ▲1.87
Add New Post /wp-admin/post-new.php5.58 ▲0.1588.99 ▼567.53
Media Library /wp-admin/upload.php3.16 ▲0.1635.22 ▲3.22
Testimonial Taxonomy /wp-admin/edit-tags.php?taxonomy=taxonomy&post_type=testimonial3.1632.53
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial3.3653.60
Testimonial Tags /wp-admin/edit-tags.php?taxonomy=tag&post_type=testimonial3.1632.66
All Testimonials /wp-admin/edit.php?post_type=testimonial3.2135.97

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Testimonial Post type
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,875 ▲27916.71 ▲1.2012.73 ▲4.4447.27 ▼4.33
Dashboard /wp-admin3,016 ▲826.10 ▼0.12152.13 ▲18.27109.47 ▼9.04
Posts /wp-admin/edit.php2,788 ▲522.74 ▲0.0269.28 ▲3.3890.52 ▼0.02
Add New Post /wp-admin/post-new.php1,648 ▲14821.86 ▲3.32271.82 ▼81.99103.88 ▼5.19
Media Library /wp-admin/upload.php1,859 ▲555.05 ▲0.04146.47 ▲1.83117.50 ▲1.08
Testimonial Taxonomy /wp-admin/edit-tags.php?taxonomy=taxonomy&post_type=testimonial1,7882.4057.9978.14
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial3,7439.17218.76163.96
Testimonial Tags /wp-admin/edit-tags.php?taxonomy=tag&post_type=testimonial1,7752.3957.7886.64
All Testimonials /wp-admin/edit.php?post_type=testimonial1,5142.6562.3775.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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 everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/testimonial-post-type/public/partials/testimonial-post-type-public-display.php
    • > /wp-content/plugins/testimonial-post-type/admin/partials/testimonial-post-type-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

testimonial-post-type/testimonial-post-type.php Passed 13 tests

The main PHP file in "Testimonial Post type" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Create a Testimonial post types, it's Taxonomy & Tags with Slider Shortcode.

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 plugin7,359 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS618462,594
JavaScript3211711,294
PHP12178536800

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.29
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.07
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions6
▷ Named functions6100.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
No PNG images were found in this plugin