67% they-said-so

Code Review | They Said So

WordPress plugin They Said So scored 67% from 54 tests.

About plugin

  • Plugin page: they-said-so
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Nov 4, 2015
  • Latest release: Dec 11, 2015
  • Number of updates: 14
  • Update frequency: every 34.9 days
  • Top authors: orthosie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,164 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼72.30ms] Passed 4 tests

Analyzing server-side resources used by They Said So
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.03140.21 ▲39.55
Dashboard /wp-admin3.01 ▼0.3093.31 ▼36.61
Posts /wp-admin/edit.php3.01 ▼0.3567.17 ▼59.54
Add New Post /wp-admin/post-new.php3.01 ▼2.8873.27 ▼152.41
Media Library /wp-admin/upload.php3.01 ▼0.2268.33 ▼40.64

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

They Said So: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲814.53 ▲1.044.71 ▼0.0580.61 ▼16.23
Dashboard /wp-admin2,207 ▲74.86 ▼0.99237.96 ▼7.43103.27 ▲0.61
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.06110.73 ▲11.7670.61 ▲11.04
Add New Post /wp-admin/post-new.php1,364 ▲116.69 ▲0.541,441.58 ▲82.92155.94 ▲71.01
Media Library /wp-admin/upload.php1,383 ▼24.15 ▼0.16242.69 ▼10.57100.37 ▼6.92
They Said So /wp-admin/theysaidso.php260.440.1961.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/they-said-so/theysaidso.php:221
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/they-said-so/theysaidso_widget.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/theysaidso.php
    • > Network (severe)
    wp-admin/theysaidso.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === they-said-so === )
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt is a good inspiration

they-said-so/theysaidso.php 85% from 13 tests

The main PHP file in "They Said So" ver. 1.2.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("they-said-so.php" instead of "theysaidso.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 251 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin336 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24811336

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.50
▷ Minimum class complexity12.00
▷ Maximum class complexity17.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1280.00%
▷ Protected methods00.00%
▷ Private methods320.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin