84% testimonial-feed

Code Review | Testimonial Feed

WordPress plugin Testimonial Feed scored84%from 54 tests.

About plugin

  • Plugin page: testimonial-feed
  • Plugin version: 1.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2019
  • Latest release: Feb 13, 2019
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: lancememan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /487 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.42ms] Passed 4 tests

Analyzing server-side resources used by Testimonial Feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.30 ▲1.16
Dashboard /wp-admin3.33 ▲0.0343.06 ▼5.34
Posts /wp-admin/edit.php3.38 ▲0.0250.07 ▼1.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0396.61 ▲4.08
Media Library /wp-admin/upload.php3.25 ▲0.0234.49 ▼0.02
Add New /wp-admin/post-new.php?post_type=testi_feed3.3950.35
Testimonial Feeds /wp-admin/edit.php?post_type=testi_feed3.3040.68

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Testimonial Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.26 ▼1.124.64 ▲2.7442.04 ▲0.56
Dashboard /wp-admin2,236 ▲485.82 ▲0.9594.89 ▼6.2839.85 ▼3.40
Posts /wp-admin/edit.php2,116 ▲272.01 ▲0.0240.48 ▼0.1635.97 ▼5.83
Add New Post /wp-admin/post-new.php1,565 ▲3718.03 ▼0.28624.43 ▼31.2855.34 ▲5.61
Media Library /wp-admin/upload.php1,418 ▲364.28 ▲0.08100.51 ▲0.6341.99 ▲0.03
Add New /wp-admin/post-new.php?post_type=testi_feed2,2397.76183.1864.90
Testimonial Feeds /wp-admin/edit.php?post_type=testi_feed1,0931.9333.2130.24

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/testimonial-feed/testimonial-feed.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: rating, comment, store feedback, testimonials, feeds...

testimonial-feed/testimonial-feed.php Passed 13 tests

The primary PHP file in "Testimonial Feed" version 1.1 is used by WordPress to initiate all plugin functionality
58 characters long description:
A simple and lightweight testimonial feed with star rating

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
No dangerous file extensions were detected240 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11735129
CSS100111

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions10
▷ Named functions10100.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