58% yo

Code Review | Yo

WordPress plugin Yo scored 58% from 54 tests.

About plugin

  • Plugin page: yo
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 2, 2014
  • Latest release: Aug 27, 2014
  • Number of updates: 6
  • Update frequency: every 9.3 days
  • Top authors: paulmolluzzo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,093 total downloads

Benchmarks

Plugin footprint 48% 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: ▼1.91MB] [CPU: ▼52.63ms] Passed 4 tests

This is a short check of server-side resources used by Yo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.48 ▼39.78
Dashboard /wp-admin2.09 ▼1.215.41 ▼43.74
Posts /wp-admin/edit.php2.10 ▼1.266.76 ▼39.96
Add New Post /wp-admin/post-new.php2.09 ▼3.796.23 ▼87.04
Media Library /wp-admin/upload.php2.09 ▼1.135.14 ▼31.41
Yo /wp-admin/plugins.php?page=yo2.105.58

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: 1 new table, 7 new options
New tables
wp_yoscribers
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
yo_api_key
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Yo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.31 ▼1.271.71 ▲0.0139.99 ▼6.12
Dashboard /wp-admin2,207 ▲195.84 ▲0.9796.23 ▼19.6243.96 ▼5.84
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0238.20 ▲3.3734.93 ▼3.09
Add New Post /wp-admin/post-new.php1,517 ▲324.17 ▲6.49697.35 ▲25.5253.89 ▲0.09
Media Library /wp-admin/upload.php1,392 ▲14.31 ▲0.14100.58 ▼5.6942.83 ▼3.22
Yo /wp-admin/plugins.php?page=yo7872.0322.7126.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/yo/yo.php+83
    Undefined index: username
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_yoscribers
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • yo_api_key
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/plugins.php?page=yo
    • > Notice in wp-content/plugins/yo/yo.php+83
    Undefined index: username

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/yo/yo.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

yo/yo.php 92% from 13 tests

The principal PHP file in "Yo" v. 1.3.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected101 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12217101

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.09
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%
Functions7
▷ Named functions7100.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
There are no PNG files in this plugin