83% faltu-testimonial-rotator

Code Review | Faltu Testimonial Rotator

WordPress plugin Faltu Testimonial Rotator scored83%from 54 tests.

About plugin

  • Plugin page: faltu-testimonial...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: May 15, 2014
  • Latest release: May 15, 2014
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: Alberuni Azad. (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

20+ active /2,218 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.58ms] Passed 4 tests

Server-side resources used by Faltu Testimonial Rotator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.61 ▼5.75
Dashboard /wp-admin3.35 ▲0.0546.92 ▼5.13
Posts /wp-admin/edit.php3.40 ▲0.0450.99 ▼6.34
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.43 ▼9.09
Media Library /wp-admin/upload.php3.27 ▲0.0436.04 ▼2.49
Testimonial /wp-admin/edit.php?post_type=trotator3.3137.47
Add New /wp-admin/post-new.php?post_type=trotator3.3951.98
Testimonial Category /wp-admin/edit-tags.php?taxonomy=testimonial_cat&post_type=trotator3.3937.97

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Faltu Testimonial Rotator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲19913.48 ▼0.878.08 ▲6.2841.09 ▼3.98
Dashboard /wp-admin2,240 ▲605.60 ▼0.0785.84 ▼17.9942.30 ▼10.19
Posts /wp-admin/edit.php2,142 ▲392.00 ▼0.0438.06 ▼5.3933.19 ▼5.75
Add New Post /wp-admin/post-new.php1,568 ▲4218.22 ▼5.16612.09 ▼62.8475.34 ▲4.08
Media Library /wp-admin/upload.php1,445 ▲424.36 ▲0.13102.98 ▼5.5446.55 ▼1.94
Testimonial /wp-admin/edit.php?post_type=trotator1,1061.9431.8830.61
Add New /wp-admin/post-new.php?post_type=trotator2,2837.67170.5863.89
Testimonial Category /wp-admin/edit-tags.php?taxonomy=testimonial_cat&post_type=trotator1,3192.2527.6731.06

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/faltu-testimonial-rotator/main-function.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

faltu-testimonial-rotator/main-function.php 85% from 13 tests

The primary PHP file in "Faltu Testimonial Rotator" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("faltu-testimonial-rotator.php" instead of "main-function.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin188 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11914102
CSS116384
JavaScript20132

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin