83% say4u

Code Review | Say4U

WordPress plugin Say4U scored83%from 54 tests.

About plugin

  • Plugin page: say4u
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 13, 2018
  • Latest release: Feb 13, 2018
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: say4u (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /569 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.21ms] Passed 4 tests

An overview of server-side resources used by Say4U
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0438.55 ▼4.78
Dashboard /wp-admin3.34 ▲0.0444.17 ▼9.97
Posts /wp-admin/edit.php3.39 ▲0.0348.17 ▲4.20
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.95 ▼1.20
Media Library /wp-admin/upload.php3.26 ▲0.0334.79 ▼0.89

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_say4u_widget
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Say4U
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.011.73 ▲0.0140.93 ▼3.31
Dashboard /wp-admin2,209 ▲214.90 ▲0.0197.88 ▼17.4238.43 ▼3.01
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0132.57 ▼3.4437.24 ▲3.58
Add New Post /wp-admin/post-new.php1,528 ▲918.43 ▼4.71651.41 ▼9.4553.93 ▼8.19
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.0793.95 ▼11.0240.39 ▼1.90

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
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_say4u_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/say4u/say4u-widget.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in say4u/assets to your readme.txt
You can take inspiration from this readme.txt

say4u/say4u-widget.php 85% from 13 tests

The main PHP file in "Say4U" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 282 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("say4u.php" instead of "say4u-widget.php")

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
Everything looks great! No dangerous files found in this plugin140 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11343140

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity9.50
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
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