83% hints

Code Review | Hints

WordPress plugin Hints scored83%from 54 tests.

About plugin

  • Plugin page: hints
  • Plugin version: 1.0a...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1+
  • WordPress version: 6.3.1
  • First release: Mar 22, 2015
  • Latest release: Mar 22, 2015
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: sojournings (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /927 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.58ms] Passed 4 tests

A check of server-side resources used by Hints
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.56 ▼5.49
Dashboard /wp-admin3.31 ▲0.0146.89 ▼4.40
Posts /wp-admin/edit.php3.36 ▲0.0144.70 ▼1.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.76 ▲1.37
Media Library /wp-admin/upload.php3.23 ▲0.0136.30 ▲1.08

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: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Hints
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲20613.67 ▼0.645.96 ▲3.8538.58 ▼7.44
Dashboard /wp-admin2,207 ▲225.85 ▼0.0398.33 ▼3.9939.14 ▼4.16
Posts /wp-admin/edit.php2,096 ▲42.02 ▲0.0135.05 ▼3.3733.55 ▲2.41
Add New Post /wp-admin/post-new.php1,532 ▼123.20 ▼0.04600.38 ▼80.4349.05 ▼7.41
Media Library /wp-admin/upload.php1,395 ▲104.22 ▼0.0998.45 ▼5.8841.64 ▼7.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/hints/hints.php

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 your attention:
  • Tested up to: The plugin version is formatted incorrectly
The official readme.txt might help

hints/hints.php 85% from 13 tests

This is the main PHP file of "Hints" version 1.0a..., 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:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1.0a...")
  • Description: The description should be shorter than 140 characters (currently 441 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin58 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2353352
SVG1004
CSS1011
JavaScript1011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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