77% edu-testimonials

Code Review | Edu Testimonials

WordPress plugin Edu Testimonials scored77%from 54 tests.

About plugin

  • Plugin page: edu-testimonials
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.2.3
  • WordPress version: 6.3.1
  • First release: Oct 19, 2019
  • Latest release: Oct 20, 2019
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: hanymahrous (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /468 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
This plugin's installer ran successfully

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

Server-side resources used by Edu Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0755.12 ▲12.72
Dashboard /wp-admin3.36 ▲0.0648.34 ▼0.92
Posts /wp-admin/edit.php3.41 ▲0.0646.10 ▼1.77
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.51 ▼14.73
Media Library /wp-admin/upload.php3.28 ▲0.0638.44 ▲3.87
shortcode /wp-admin/edit.php?post_type=testimonials&page=shortcode3.2531.30
All Testimonials /wp-admin/edit.php?post_type=testimonials3.3334.90
Add Testimonial /wp-admin/post-new.php?post_type=testimonials3.4052.04

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Edu 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,840 ▲10513.32 ▼1.274.39 ▲2.6643.87 ▲1.17
Dashboard /wp-admin2,237 ▲464.82 ▼0.02110.43 ▲6.2943.36 ▼0.88
Posts /wp-admin/edit.php2,120 ▲282.03 ▲0.0735.09 ▼4.7538.69 ▲4.55
Add New Post /wp-admin/post-new.php1,564 ▲5023.30 ▼0.38632.16 ▼63.9752.81 ▼2.18
Media Library /wp-admin/upload.php1,422 ▲344.24 ▲0.0498.84 ▲0.3542.27 ▼4.80
shortcode /wp-admin/edit.php?post_type=testimonials&page=shortcode7672.0624.6226.74
All Testimonials /wp-admin/edit.php?post_type=testimonials1,1081.9334.3829.41
Add Testimonial /wp-admin/post-new.php?post_type=testimonials2,2457.71173.5264.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/edu-testimonials/edu-testimonials.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/edu-testimonials/inc/base/testimonials-slider.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: A description for screenshot #3 is required in edu-testimonials/assets to your readme.txt
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === edu-testimonials === )
Please take inspiration from this readme.txt

edu-testimonials/edu-testimonials.php 77% from 13 tests

The main file in "Edu Testimonials" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "5.2")
  • Requires PHP: Required version must match the one declared in readme.txt ("5.2.4" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin344 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP59064292
CSS21251
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods1173.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.53MB with 0.34MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png447.48KB133.65KB▼ 70.13%
assets/screenshot-1.png32.68KB13.28KB▼ 59.37%
assets/screenshot-2.png66.89KB24.18KB▼ 63.85%