72% spectoos-testimonials

Code Review | Spectoos Testimonials

WordPress plugin Spectoos Testimonials scored72%from 54 tests.

About plugin

  • Plugin page: spectoos-testimon...
  • Plugin version: 2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.6
  • WordPress version: 6.3.1
  • First release: Oct 17, 2014
  • Latest release: Jun 10, 2018
  • Number of updates: 51
  • Update frequency: every 26.2 days
  • Top authors: spectoos (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

60+ active /4,533 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.41ms] Passed 4 tests

A check of server-side resources used by Spectoos Testimonials
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.73 ▼8.10
Dashboard /wp-admin3.32 ▼0.0350.00 ▼17.02
Posts /wp-admin/edit.php3.37 ▲0.0150.08 ▲2.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.34 ▼8.57
Media Library /wp-admin/upload.php3.24 ▲0.0136.18 ▲0.04
Spectoos /wp-admin/options-general.php?page=spectoos3.2333.45

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Spectoos Testimonials
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.13 ▼0.431.70 ▼0.0043.10 ▲1.13
Dashboard /wp-admin2,202 ▲225.51 ▼0.1384.01 ▼18.5737.47 ▼5.92
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0338.42 ▼1.1633.97 ▼0.77
Add New Post /wp-admin/post-new.php1,530 ▼122.99 ▼0.04659.59 ▼34.0359.08 ▼1.71
Media Library /wp-admin/upload.php1,398 ▼54.15 ▼0.04103.43 ▼1.0145.56 ▲0.69
Spectoos /wp-admin/options-general.php?page=spectoos8461.9822.0727.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=spectoos
    • > Warning in wp-content/plugins/spectoos-testimonials/spectoos.php+103
    Use of undefined constant faceboard_api_key - assumed 'faceboard_api_key' (this will throw an Error in a future version of PHP)

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
Almost there! Just 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_shortcode() in wp-content/plugins/spectoos-testimonials/spectoos.php:57

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=spectoos
    • > Network (severe)
    https://app.spectoos.com/api/v1/spectoos.js?apikey=1_vW9NauPHKyp8HG4SjOeslQ - Failed to load resource: net::ERR_EMPTY_RESPONSE
    • > GET request to /wp-admin/options-general.php?page=spectoos
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=spectoos 148:3 Uncaught ReferenceError: spectoos is not defined

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
Please take inspiration from this readme.txt

spectoos-testimonials/spectoos.php 92% from 13 tests

Analyzing the main PHP file in "Spectoos Testimonials" version 2.8
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("spectoos-testimonials.php" instead of "spectoos.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
No dangerous file extensions were detected98 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1281098

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/strip.png12.59KB6.52KB▼ 48.21%