83% infinity-testimonilas

Code Review | Infinity Testimonials

WordPress plugin Infinity Testimonials scored83%from 54 tests.

About plugin

  • Plugin page: infinity-testimon...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Nov 30, 2018
  • Latest release: Dec 1, 2018
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: nahian91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /481 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.90ms] Passed 4 tests

This is a short check of server-side resources used by Infinity Testimonials
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0443.79 ▲2.01
Dashboard /wp-admin3.38 ▼0.0047.41 ▼24.32
Posts /wp-admin/edit.php3.43 ▲0.0453.63 ▲5.82
Add New Post /wp-admin/post-new.php5.96 ▲0.0492.59 ▼10.11
Media Library /wp-admin/upload.php3.30 ▲0.0435.27 ▲0.82
Add New /wp-admin/post-new.php?post_type=ifs-testimonial3.4252.40
Tesimonialss /wp-admin/edit.php?post_type=ifs-testimonial3.3435.56

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Infinity Testimonials: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲11113.34 ▼1.031.97 ▲0.1644.14 ▲2.13
Dashboard /wp-admin2,233 ▲484.90 ▼0.98109.41 ▼1.7241.99 ▼4.10
Posts /wp-admin/edit.php2,116 ▲272.04 ▲0.0240.06 ▲3.6934.73 ▲0.92
Add New Post /wp-admin/post-new.php1,537 ▲417.46 ▼5.61628.28 ▼4.9257.43 ▲4.46
Media Library /wp-admin/upload.php1,415 ▲274.19 ▲0.0197.91 ▼4.1344.72 ▲3.59
Add New /wp-admin/post-new.php?post_type=ifs-testimonial2,1767.61164.5661.19
Tesimonialss /wp-admin/edit.php?post_type=ifs-testimonial1,0801.9331.2027.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% 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 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/infinity-testimonilas/main-hook.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinity-testimonilas/ifs-testi-type.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Donate link: Invalid URI found ("")
  • Contributors: The plugin contributors field is missing
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in infinity-testimonilas/assets to your readme.txt
You can take inspiration from this readme.txt

infinity-testimonilas/main-hook.php 92% from 13 tests

The principal PHP file in "Infinity Testimonials" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("infinity-testimonilas.php" instead of "main-hook.php")

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
There were no executable files found in this plugin178 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22715120
CSS12058

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bannar-772x250.png41.23KB16.38KB▼ 60.28%
screenshot-1.png41.23KB16.38KB▼ 60.28%