94% tekserve-testimonials

Code Review | Tekserve Testimonials

WordPress plugin Tekserve Testimonials scored 94% from 54 tests.

About plugin

  • Plugin page: tekserve-testimon...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.7.1
  • WordPress version: 5.8.1
  • First release: Nov 8, 2013
  • Latest release: Nov 10, 2013
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: bangerkuwranger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 520 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼157.52ms] Passed 4 tests

An overview of server-side resources used by Tekserve Testimonials
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0636.38 ▼1.89
Dashboard /wp-admin3.12 ▲0.0646.11 ▼3.45
Posts /wp-admin/edit.php3.17 ▲0.0648.57 ▲2.86
Add New Post /wp-admin/post-new.php5.48 ▲0.0493.60 ▼627.58
Media Library /wp-admin/upload.php3.06 ▲0.0635.23 ▲3.77
Add New /wp-admin/post-new.php?post_type=tekserve_testimonial3.1649.09
Testimonial Type /wp-admin/edit-tags.php?taxonomy=tekserve-testimonials-type&post_type=tekserve_testimonial3.0639.20
Testimonials /wp-admin/edit.php?post_type=tekserve_testimonial3.1126.13

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Tekserve Testimonials: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,735 ▲16315.82 ▲0.417.57 ▼4.1849.27 ▼4.64
Dashboard /wp-admin3,007 ▲735.93 ▲0.01145.69 ▼10.54117.85 ▲3.80
Posts /wp-admin/edit.php2,779 ▲402.70 ▲0.0270.43 ▼1.9891.55 ▼5.31
Add New Post /wp-admin/post-new.php1,709 ▲2618.74 ▲0.15386.90 ▼5.70113.36 ▲2.70
Media Library /wp-admin/upload.php1,847 ▲375.02 ▲0.00164.21 ▼0.65121.80 ▼6.13
Add New /wp-admin/post-new.php?post_type=tekserve_testimonial3,0059.04244.28132.31
Testimonial Type /wp-admin/edit-tags.php?taxonomy=tekserve-testimonials-type&post_type=tekserve_testimonial1,7482.5066.4983.36
Testimonials /wp-admin/edit.php?post_type=tekserve_testimonial1,4482.6170.6775.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tekserve-testimonials/tekserve-testimonials.php:24

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (New testimonial. Drop the quote in the content box (html is ok), add a name / organization, and a type if you so desire.), #2 (View your testimonials and sort by type or date.)
The official readme.txt is a good inspiration

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

The main PHP file in "Tekserve Testimonials" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
Custom Post Type for Testimonial Quotes; Includes Custom Fields & Genesis Shortcode

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
Success! There were no dangerous files found in this plugin253 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13036199
Markdown133043
CSS12011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png71.57KB26.10KB▼ 63.53%
screenshot-1.png57.65KB21.04KB▼ 63.51%