79% posts-and-pages-github-backup

Code Review | Posts and Pages GitHub Backup

WordPress plugin Posts and Pages GitHub Backup scored79%from 54 tests.

About plugin

  • Plugin page: posts-and-pages-g...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Jun 15, 2017
  • Latest release: Jun 15, 2017
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: robertferanec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /711 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.08MB] [CPU: ▼7.49ms] Passed 4 tests

This is a short check of server-side resources used by Posts and Pages GitHub Backup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.64 ▼4.98
Dashboard /wp-admin3.34 ▲0.0350.68 ▼2.23
Posts /wp-admin/edit.php3.39 ▲0.0352.65 ▲1.97
Add New Post /wp-admin/post-new.php5.46 ▼0.4275.53 ▼24.71
Media Library /wp-admin/upload.php3.26 ▲0.0337.13 ▲2.53

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Posts and Pages GitHub Backup: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.21 ▼1.431.99 ▲0.3343.23 ▲1.35
Dashboard /wp-admin2,219 ▲315.84 ▲0.9698.72 ▼14.5739.27 ▼5.14
Posts /wp-admin/edit.php2,108 ▲192.01 ▼0.0136.04 ▼5.9434.76 ▼1.40
Add New Post /wp-admin/post-new.php6,266 ▲4,75226.16 ▲8.64958.45 ▲262.8777.21 ▲20.62
Media Library /wp-admin/upload.php1,401 ▲134.21 ▲0.0199.81 ▼10.6044.95 ▼3.58

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/posts-and-pages-github-backup/posts-and-pages-github-backup.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/posts-and-pages-github-backup/include/main.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: backup, github

posts-and-pages-github-backup/posts-and-pages-github-backup.php Passed 13 tests

The main file in "Posts and Pages GitHub Backup" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
59 characters long description:
Backups WordPress content of your posts and pages to GitHub

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
Success! There were no dangerous files found in this plugin344 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16176225
PHP23040119

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/GitHub-Mark-Light-32px.png1.53KB0.85KB▼ 44.56%