83% testrobo-safe-update

Code Review | TestRobo Safe Update

WordPress plugin TestRobo Safe Update scored83%from 54 tests.

About plugin

  • Plugin page: testrobo-safe-update
  • Plugin version: 0.0.5
  • PHP compatiblity: 5.5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 30, 2019
  • Latest release: Oct 17, 2019
  • Number of updates: 7
  • Update frequency: every 2.6 days
  • Top authors: gamesman123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /458 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

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

This is a short check of server-side resources used by TestRobo Safe Update
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.80 ▼4.58
Dashboard /wp-admin3.33 ▲0.0244.89 ▼4.50
Posts /wp-admin/edit.php3.38 ▲0.0247.31 ▼1.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.95 ▼9.31
Media Library /wp-admin/upload.php3.25 ▲0.0236.80 ▲1.63
TestRobo Safe Update /wp-admin/options-general.php?page=trsu3.2236.18

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
trsu_is_enabled
widget_theysaidso_widget
db_upgraded
can_compress_scripts
trsu_api_key
trsu_suite_id

Browser metrics Passed 4 tests

An overview of browser requirements for TestRobo Safe Update
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲5213.29 ▼1.081.73 ▼0.3744.74 ▲0.50
Dashboard /wp-admin2,218 ▲334.87 ▼0.04104.45 ▼11.7540.25 ▼6.42
Posts /wp-admin/edit.php2,098 ▲92.01 ▲0.0039.85 ▲2.7835.67 ▼0.13
Add New Post /wp-admin/post-new.php1,522 ▼1317.53 ▼0.58610.33 ▼21.5352.96 ▼3.68
Media Library /wp-admin/upload.php1,400 ▲94.20 ▼0.0398.47 ▼3.9842.96 ▲0.76
TestRobo Safe Update /wp-admin/options-general.php?page=trsu8942.0523.6829.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/testrobo-safe-update/trsu-settings-page2.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/testrobo-safe-update/trsu-plugin.php:77

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 90% 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 require attention:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

testrobo-safe-update/trsu-plugin.php 85% from 13 tests

The entry point to "TestRobo Safe Update" version 0.0.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 181 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("testrobo-safe-update.php" instead of "trsu-plugin.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
Good job! No executable or dangerous file extensions detected309 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33527171
CSS1150125
Markdown13013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin