62% fifo-testimonials

Code Review | FIFO Testimonials

WordPress plugin FIFO Testimonials scored62%from 54 tests.

About plugin

  • Plugin page: fifo-testimonials
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Jun 22, 2013
  • Latest release: Apr 18, 2014
  • Number of updates: 11
  • Update frequency: every 27.3 days
  • Top authors: fifolab (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,639 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼36.87ms] Passed 4 tests

Server-side resources used by FIFO Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.92 ▼3.08
Dashboard /wp-admin3.07 ▼0.2425.96 ▼25.42
Posts /wp-admin/edit.php3.07 ▼0.2924.01 ▼29.18
Add New Post /wp-admin/post-new.php3.07 ▼2.8223.45 ▼78.87
Media Library /wp-admin/upload.php3.07 ▼0.1623.08 ▼14.00
Settings /wp-admin/edit.php?post_type=testimonial&page=fifolab-settings3.0725.84
Add Testimonial /wp-admin/post-new.php?post_type=testimonial3.0724.74
All Testimonials /wp-admin/edit.php?post_type=testimonial3.0726.19

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by FIFO Testimonials
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲7413.16 ▼1.411.68 ▼0.2942.91 ▼1.45
Dashboard /wp-admin2,244 ▲564.84 ▼1.12102.01 ▼7.6438.69 ▼13.63
Posts /wp-admin/edit.php2,124 ▲322.04 ▲0.0333.67 ▼2.4533.21 ▼2.05
Add New Post /wp-admin/post-new.php1,552 ▲3323.02 ▼0.02602.04 ▼69.3735.04 ▼15.86
Media Library /wp-admin/upload.php1,429 ▲414.27 ▲0.0597.77 ▼10.2042.45 ▼2.31
Settings /wp-admin/edit.php?post_type=testimonial&page=fifolab-settings8382.0224.9030.36
Add Testimonial /wp-admin/post-new.php?post_type=testimonial2,2587.55173.4075.90
All Testimonials /wp-admin/edit.php?post_type=testimonial1,0941.9537.4440.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=testimonial
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Notice in wp-content/plugins/fifo-testimonials/testimonial.php+426
    Undefined index: fifolab_meta_box_nonce

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/fifo-testimonials/testimonial.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=testimonial
    • > Network (severe)
    wp-content/plugins/fifo-testimonials/i/ae-bg-400t.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Add the testimonial via editor.), #2 (All of your testimonials are kept in one place for ease of use.), #3 (Add the shortcode [testimonials] to a page to display a full testimonials page with inbuilt pagination.), #4 (The display of testimonials in a wordpress page.), #5 (Add the number of testimonials you wanted to see per page.)
The official readme.txt is a good inspiration

fifo-testimonials/testimonial.php 85% from 13 tests

This is the main PHP file of "FIFO Testimonials" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fifo-testimonials.php" instead of "testimonial.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin432 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP215671325
CSS22413107

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/arrrow_down.png1.17KB0.39KB▼ 66.81%
img/ico-female-user.png2.34KB1.52KB▼ 34.91%
img/ico-user.png4.18KB1.26KB▼ 69.73%
img/users.png2.24KB1.42KB▼ 36.57%