10% similar-sites-menu

Code Review | Similar sites menu

WordPress plugin Similar sites menu scored 10% from 54 tests.

About plugin

  • Plugin page: similar-sites-menu
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jul 11, 2013
  • Latest release: Aug 1, 2013
  • Number of updates: 70
  • Update frequency: every 0.3 days
  • Top authors: Qweacker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,029 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/similar-sites-menu/similar_sites.php+50
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.48ms] Passed 4 tests

Analyzing server-side resources used by Similar sites menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.93 ▼1.66
Dashboard /wp-admin3.31 ▲0.0049.55 ▼2.45
Posts /wp-admin/edit.php3.36 ▲0.0048.92 ▲4.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.61 ▲7.54
Media Library /wp-admin/upload.php3.23 ▲0.0034.83 ▲1.85

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Similar sites menu: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.101.72 ▼0.0341.25 ▼3.50
Dashboard /wp-admin2,203 ▲155.85 ▼0.0394.51 ▼20.0838.76 ▼3.38
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0239.45 ▲3.2634.47 ▲1.81
Add New Post /wp-admin/post-new.php1,535 ▲123.56 ▲0.42633.45 ▼53.4449.97 ▼20.54
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0695.64 ▼21.0143.75 ▼6.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/similar-sites-menu/similar_sites_admin.php:30
    • > PHP Notice
      Undefined index: similar_sites_hidden in wp-content/plugins/similar-sites-menu/similar_sites_admin.php on line 2
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/similar-sites-menu/similar_sites.php on line 50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

similar-sites-menu/similar_sites.php 85% from 13 tests

This is the main PHP file of "Similar sites menu" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("similar-sites-menu.php" instead of "similar_sites.php")
  • Description: The description should be shorter than 140 characters (currently 158 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
Everything looks great! No dangerous files found in this plugin949 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript113837820
PHP2201787
CSS10033
HTML1309

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
link.png0.41KB0.43KB0.00%
jscolor/hs.png2.62KB7.54KB0.00%
jscolor/hv.png2.80KB7.32KB0.00%