67% wp-system-snapshot

Code Review | Plugins List

WordPress plugin Plugins List scored67%from 54 tests.

About plugin

  • Plugin page: wp-system-snapshot
  • Plugin version: 1.2
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: May 6, 2020
  • Latest release: May 12, 2020
  • Number of updates: 7
  • Update frequency: every 2.0 days
  • Top authors: escitsupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /464 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.29ms] Passed 4 tests

Server-side resources used by Plugins List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0245.13 ▲6.18
Dashboard /wp-admin3.37 ▲0.0249.68 ▼0.58
Posts /wp-admin/edit.php3.48 ▲0.0849.17 ▲2.40
Add New Post /wp-admin/post-new.php5.95 ▲0.0288.76 ▼22.45
Media Library /wp-admin/upload.php3.29 ▲0.0236.21 ▼4.52
System Snapshot /wp-admin/tools.php?page=wp_system_snapshot___page3.3646.78

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Plugins List: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.371.73 ▲0.1742.40 ▲1.94
Dashboard /wp-admin2,196 ▲165.55 ▼0.1383.86 ▼5.8237.60 ▼5.72
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0035.92 ▼3.2132.64 ▼5.22
Add New Post /wp-admin/post-new.php1,540 ▲1418.34 ▼4.86644.31 ▼14.2168.63 ▲16.89
Media Library /wp-admin/upload.php1,404 ▲44.15 ▲0.08102.74 ▲2.6243.98 ▼1.11
System Snapshot /wp-admin/tools.php?page=wp_system_snapshot___page1,7071.9924.4231.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=wp_system_snapshot___page
    • > Notice in wp-content/plugins/wp-system-snapshot/layout.php+17
    Undefined index: ZPluginLastChecked
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=wp_system_snapshot___page
    • > Warning in wp-content/plugins/wp-system-snapshot/layout.php+17
    time() expects exactly 0 parameters, 1 given
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=wp_system_snapshot___page
    • > Notice in wp-content/plugins/wp-system-snapshot/layout.php+23
    Undefined index: ZPluginUpdate
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=wp_system_snapshot___page
    • > Notice in wp-content/plugins/wp-system-snapshot/layout.php+25
    Undefined index: ZPluginNewVersionNumber
    • > GET request to /wp-admin/tools.php?page=wp_system_snapshot___page
    • > Notice in wp-content/plugins/wp-system-snapshot/layout.php+32
    Undefined variable: var___plugins___active_count
    • > GET request to /wp-admin/tools.php?page=wp_system_snapshot___page
    • > Warning in wp-content/plugins/wp-system-snapshot/layout.php+32
    count(): Parameter must be an array or an object that implements Countable

SRP 0% 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
Please take a closer look at the following
  • 7× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-system-snapshot/layout6.php
    • > /wp-content/plugins/wp-system-snapshot/layout7.php
    • > /wp-content/plugins/wp-system-snapshot/layout5.php
    • > /wp-content/plugins/wp-system-snapshot/layout3.php
    • > /wp-content/plugins/wp-system-snapshot/layout4.php
    • > /wp-content/plugins/wp-system-snapshot/layout.php
    • > /wp-content/plugins/wp-system-snapshot/layout2.php
  • 35× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-system-snapshot/layout3.php on line 22
    • > PHP Notice
      Trying to get property 'charset' of non-object in wp-content/plugins/wp-system-snapshot/layout7.php on line 24
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/wp-system-snapshot/layout2.php on line 14
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/wp-system-snapshot/layout2.php on line 1
    • > PHP Notice
      Undefined variable: plugins in wp-content/plugins/wp-system-snapshot/layout.php on line 1
    • > PHP Notice
      Undefined variable: var___plugins___active_count in wp-content/plugins/wp-system-snapshot/layout.php on line 32
    • > PHP Notice
      Undefined variable: dbSize in wp-content/plugins/wp-system-snapshot/layout3.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/wp-system-snapshot/layout8.php:12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-system-snapshot/layout3.php on line 22
    • > PHP Warning
      Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-system-snapshot/layout5.php on line 29

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=wp_system_snapshot___page
    • > Network (severe)
    wp-admin/images/Red-cross.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=wp_system_snapshot___page
    • > Network (severe)
    wp-admin/images/Green-tick.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: environment, themes, server, database, plugins...

wp-system-snapshot/wp-system-snapshot.php Passed 13 tests

This is the main PHP file of "Plugins List" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
The perfect tool for developers to see a quick snapshot of the WordPress system.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin421 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP94051421

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.37MB with 0.16MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png50.98KB21.20KB▼ 58.41%
images/Green-tick.png3.09KB1.30KB▼ 57.80%
images/Red-cross.png2.76KB2.21KB▼ 20.16%
assets/banner-772x250.png323.48KB197.76KB▼ 38.87%