79% maintenance-snippets

Code Review | Maintenance Snippets

WordPress plugin Maintenance Snippets scored79%from 54 tests.

About plugin

  • Plugin page: maintenance-snippets
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Nov 29, 2017
  • Latest release: Nov 29, 2017
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: MatheusFD (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /686 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: ▼12.71MB] [CPU: ▼2,626,843.80ms] Passed 4 tests

This is a short check of server-side resources used by Maintenance Snippets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0144.96 ▲0.07
Dashboard /wp-admin3.36 ▼50.8649.23 ▼10,507,353.52
Posts /wp-admin/edit.php3.41 ▲0.0149.59 ▼3.42
Add New Post /wp-admin/post-new.php5.94 ▲0.0191.70 ▼18.32
Media Library /wp-admin/upload.php3.28 ▲0.0141.95 ▲4.50
Maintenance Snippet /wp-admin/plugins.php?page=maintenance-snippets/snippets.php3.3537.26

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Maintenance Snippets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.72 ▲0.072.02 ▲0.0343.77 ▲0.91
Dashboard /wp-admin2,199 ▲225.63 ▼0.1083.48 ▼3.4841.73 ▼1.99
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0337.76 ▼2.3930.80 ▼6.65
Add New Post /wp-admin/post-new.php1,529 ▲123.69 ▲0.80675.06 ▲69.4761.56 ▲2.71
Media Library /wp-admin/upload.php1,398 ▼54.17 ▼0.0195.68 ▼5.7643.61 ▼2.34
Maintenance Snippet /wp-admin/plugins.php?page=maintenance-snippets/snippets.php7602.1225.5925.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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
These server-side errors were triggered
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=maintenance-snippets/snippets.php
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=maintenance-snippets/snippets.php
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_transient() in wp-content/plugins/maintenance-snippets/snippets.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: report, audit, maintenance

maintenance-snippets/maintenance-snippets.php Passed 13 tests

The primary PHP file in "Maintenance Snippets" version 0.1.0 is used by WordPress to initiate all plugin functionality
60 characters long description:
This plugin gives you a report of plugins that need updates.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected114 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6329660
PO File2101054

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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