83% likely

Code Review | Likely

WordPress plugin Likely scored83%from 54 tests.

About plugin

  • Plugin page: likely
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.1
  • WordPress version: 6.3.1
  • First release: Jun 2, 2016
  • Latest release: Jul 11, 2023
  • Number of updates: 36
  • Update frequency: every 72.1 days
  • Top authors: seezer (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /3,200 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.61ms] Passed 4 tests

This is a short check of server-side resources used by Likely
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.28 ▼3.03
Dashboard /wp-admin3.40 ▲0.0950.59 ▲0.86
Posts /wp-admin/edit.php3.51 ▲0.1549.81 ▲1.16
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.68 ▼25.41
Media Library /wp-admin/upload.php3.32 ▲0.0938.77 ▲2.68
Likely /wp-admin/options-general.php?page=likely3.2936.16

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Likely: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.73 ▼0.861.56 ▼0.7240.81 ▼9.75
Dashboard /wp-admin2,210 ▲255.80 ▲0.9095.34 ▼20.7240.42 ▼8.67
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0040.96 ▲0.2534.18 ▼0.65
Add New Post /wp-admin/post-new.php1,536 ▲322.98 ▼0.39677.51 ▲50.4160.36 ▲9.38
Media Library /wp-admin/upload.php1,392 ▲14.26 ▲0.0695.60 ▲0.5643.79 ▼0.13
Likely /wp-admin/options-general.php?page=likely1,0592.0622.9930.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/likely/social-buttons.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/likely/likely.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === likely === )
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Donate link: Invalid url: ""
You can look at the official readme.txt

likely/likely.php 92% from 13 tests

"Likely" version 3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 403 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected610 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP21517498
PO File154189110
CSS1041
JavaScript1051

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin