68% setihome-stats

Code Review | SETI@home Stats

WordPress plugin SETI@home Stats scored68%from 54 tests.

About plugin

  • Plugin page: setihome-stats
  • Plugin version: 1.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6+
  • WordPress version: 6.3.1
  • First release: Nov 1, 2008
  • Latest release: Sep 9, 2017
  • Number of updates: 104
  • Update frequency: every 31.3 days
  • Top authors: tiogaplanet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,968 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼1.26MB] [CPU: ▼42.42ms] Passed 4 tests

A check of server-side resources used by SETI@home Stats
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.73 ▼0.7415.53 ▼24.31
Dashboard /wp-admin2.76 ▼0.5815.40 ▼41.54
Posts /wp-admin/edit.php2.77 ▼0.5915.16 ▼26.64
Add New Post /wp-admin/post-new.php2.76 ▼3.1215.32 ▼77.20
Media Library /wp-admin/upload.php2.77 ▼0.4615.44 ▼19.64
SETI@home Stats /wp-admin/options-general.php?page=setihome-stats/options-seti.php2.7715.89

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
seti_acct
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
seti_expy
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for SETI@home Stats
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.18 ▼1.472.04 ▲0.5744.87 ▲3.00
Dashboard /wp-admin2,213 ▲214.88 ▼0.07111.32 ▲4.3642.96 ▼0.32
Posts /wp-admin/edit.php2,072 ▼172.01 ▲0.0234.89 ▼2.3732.45 ▼1.41
Add New Post /wp-admin/post-new.php1,517 ▼1117.54 ▼0.63656.27 ▲37.9354.34 ▼9.47
Media Library /wp-admin/upload.php1,389 ▲44.19 ▲0.0894.54 ▼15.3544.81 ▼3.08
SETI@home Stats /wp-admin/options-general.php?page=setihome-stats/options-seti.php8392.0625.1328.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > 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.
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_theysaidso_widget
    • seti_acct
    • widget_recent-comments
    • theysaidso_admin_options
    • seti_expy
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=setihome-stats/options-seti.php
    • > 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.
    • > GET request to /wp-admin/options-general.php?page=setihome-stats/options-seti.php
    • > Notice in wp-content/plugins/setihome-stats/options-seti.php+20
    Undefined index: stage

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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/setihome-stats/options-seti.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/setihome-stats/widget-setistats.php:33
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/setihome-stats/setistats.php on line 35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/setihome-stats/setistats.php:43

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tested up to: Version format is invalid
You can take inspiration from this readme.txt

setihome-stats/setistats.php 92% from 13 tests

"SETI@home Stats" version 1.1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("setihome-stats.php" instead of "setistats.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected193 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36677193

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
seti_button.png7.49KB2.73KB▼ 63.56%