90% backup-snippets

Code Review | Backup Snippets - Restore Code Snippet Easily

WordPress plugin Backup Snippets - Restore Code Snippet Easily scored 90% from 54 tests.

About plugin

  • Plugin page: backup-snippets
  • Plugin version: 1.1.0
  • PHP compatiblity: 8.1.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 30, 2023
  • Latest release: Mar 30, 2023
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: artarejamedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 136 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.96ms] Passed 4 tests

An overview of server-side resources used by Backup Snippets - Restore Code Snippet Easily
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.30 ▼7.65
Dashboard /wp-admin3.31 ▲0.0044.06 ▼4.20
Posts /wp-admin/edit.php3.36 ▲0.0048.45 ▲4.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.58 ▲6.13
Media Library /wp-admin/upload.php3.23 ▲0.0034.50 ▼0.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Backup Snippets - Restore Code Snippet Easily
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.381.68 ▼0.0338.94 ▼15.98
Dashboard /wp-admin2,206 ▲185.90 ▲0.98107.30 ▼7.1838.90 ▼4.26
Posts /wp-admin/edit.php2,089 ▲31.99 ▼0.0139.26 ▲4.4333.90 ▼4.94
Add New Post /wp-admin/post-new.php1,537 ▼523.44 ▲5.09587.57 ▼8.2647.00 ▼10.40
Media Library /wp-admin/upload.php1,388 ▲34.19 ▲0.0694.29 ▼8.1939.78 ▼5.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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: restore, history, code, paste, copy...

backup-snippets/backup-snippets.php 92% from 13 tests

The main file in "Backup Snippets - Restore Code Snippet Easily" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("8.1.11" instead of "8.1.9")

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
Everything looks great! No dangerous files found in this plugin349 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP55881141
CSS2216130
JavaScript2251878

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin