74% shrinktheweb-refresh-all

Code Review | ShrinkTheWeb Refresh All

WordPress plugin ShrinkTheWeb Refresh All scored74%from 54 tests.

About plugin

  • Plugin page: shrinktheweb-refr...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.8
  • WordPress version: 6.3.1
  • First release: Oct 2, 2013
  • Latest release: Mar 28, 2017
  • Number of updates: 18
  • Update frequency: every 75.8 days
  • Top authors: puravida1976 (66.67%)nikitanovikov (38.89%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,352 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.76ms] Passed 4 tests

An overview of server-side resources used by ShrinkTheWeb Refresh All
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1339.45 ▲1.05
Dashboard /wp-admin3.44 ▲0.0943.76 ▼16.22
Posts /wp-admin/edit.php3.55 ▲0.1947.29 ▲2.61
Add New Post /wp-admin/post-new.php6.02 ▲0.1383.01 ▼5.68
Media Library /wp-admin/upload.php3.36 ▲0.1334.08 ▼2.17
STW Refresh All /wp-admin/options-general.php?page=stwRefreshAll3.3331.38

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables
wp_stw_links
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ShrinkTheWeb Refresh All
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.59 ▼0.041.95 ▲0.3743.43 ▲3.11
Dashboard /wp-admin2,202 ▲215.63 ▼0.0882.00 ▼15.7440.64 ▲1.97
Posts /wp-admin/edit.php2,101 ▲11.98 ▼0.0534.44 ▼2.3232.41 ▼4.17
Add New Post /wp-admin/post-new.php1,529 ▼623.14 ▲4.94675.64 ▲39.1858.49 ▼11.71
Media Library /wp-admin/upload.php1,404 ▲44.18 ▲0.0095.20 ▼1.7140.36 ▼5.78
STW Refresh All /wp-admin/options-general.php?page=stwRefreshAll9011.9924.3225.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_stw_links
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/shrinktheweb-refresh-all/stw-refresh-all.php on line 51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shrinktheweb-refresh-all/stw-refresh-all.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: schedule, website screenshots, recapture, thumbnails, previews

shrinktheweb-refresh-all/stw-refresh-all.php 92% from 13 tests

The primary PHP file in "ShrinkTheWeb Refresh All" version 1.3.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("shrinktheweb-refresh-all.php" instead of "stw-refresh-all.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin684 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1227117684

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity159.00
▷ Minimum class complexity159.00
▷ Maximum class complexity159.00
Average method complexity6.85
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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