68% hyves-respect

Code Review | Hyves respect button

WordPress plugin Hyves respect button scored68%from 54 tests.

About plugin

  • Plugin page: hyves-respect
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-3.7.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2011
  • Latest release: Dec 9, 2013
  • Number of updates: 29
  • Update frequency: every 33.9 days
  • Top authors: martijnh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,762 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼35.46ms] Passed 4 tests

A check of server-side resources used by Hyves respect button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.50 ▼5.03
Dashboard /wp-admin3.07 ▼0.2726.18 ▼33.38
Posts /wp-admin/edit.php3.08 ▼0.2824.27 ▼24.48
Add New Post /wp-admin/post-new.php3.07 ▼2.8126.42 ▼69.69
Media Library /wp-admin/upload.php3.08 ▼0.1520.53 ▼14.29

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 13 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
hyvesrespect_breakafter
hyvesrespect_displaystyle
hyvesrespect_breakbefore
widget_theysaidso_widget
hyvesrespect_stylelayout
can_compress_scripts
widget_recent-posts
...

Browser metrics Passed 4 tests

A check of browser resources used by Hyves respect button
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.17 ▼1.202.37 ▲0.6544.20 ▲0.81
Dashboard /wp-admin2,209 ▲215.84 ▼0.03102.04 ▼2.5140.65 ▼3.44
Posts /wp-admin/edit.php2,098 ▲92.04 ▼0.0139.66 ▼0.0834.17 ▼2.07
Add New Post /wp-admin/post-new.php1,542 ▲2818.06 ▲0.53643.94 ▼52.9261.37 ▲3.03
Media Library /wp-admin/upload.php1,394 ▲94.23 ▲0.0294.46 ▼11.1941.46 ▼2.33
Hyves respect /wp-admin/hyvesrespect.php260.440.0813.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/hyves-respect/hyvesrespect.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/hyvesrespect.php
    • > Network (severe)
    wp-admin/hyvesrespect.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Screenshot is showing bottom placed button) image required
You can take inspiration from this readme.txt

hyves-respect/hyvesrespect.php 92% from 13 tests

The primary PHP file in "Hyves respect button" version 1.4 is used by WordPress to initiate all plugin functionality
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 ("hyves-respect.php" instead of "hyvesrespect.php")

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
There were no executable files found in this plugin360 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22041241
PO File2363499
JavaScript10212
CSS1158

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin