84% new-post-automatic-xml-backup-by-email

Code Review | New Post Automatic XML Backup by Email

WordPress plugin New Post Automatic XML Backup by Email scored84%from 54 tests.

About plugin

  • Plugin page: new-post-automati...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2013
  • Latest release: Feb 13, 2014
  • Number of updates: 18
  • Update frequency: every 11.9 days
  • Top authors: Xosen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,487 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.23ms] Passed 4 tests

Server-side resources used by New Post Automatic XML Backup by Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.86 ▲2.10
Dashboard /wp-admin3.37 ▲0.0247.41 ▼18.47
Posts /wp-admin/edit.php3.42 ▲0.0547.49 ▲2.62
Add New Post /wp-admin/post-new.php5.95 ▲0.0585.30 ▼13.09
Media Library /wp-admin/upload.php3.29 ▲0.0536.60 ▲0.54

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for New Post Automatic XML Backup by Email
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.211.76 ▲0.0643.58 ▼0.54
Dashboard /wp-admin2,198 ▲245.58 ▲0.0192.98 ▼1.0445.97 ▲5.55
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0241.37 ▲5.3944.35 ▲8.37
Add New Post /wp-admin/post-new.php1,526 ▼023.66 ▲0.47663.70 ▲34.2255.56 ▲0.34
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.0198.31 ▼3.1740.20 ▼4.66

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 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/new-post-automatic-xml-backup-by-email/new-post-automatic-xml-backup-by-email.php:115

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 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
5 plugin tags: email, publish, backup, xml, post

new-post-automatic-xml-backup-by-email/new-post-automatic-xml-backup-by-email.php 92% from 13 tests

The entry point to "New Post Automatic XML Backup by Email" version 1.0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 198 characters long)

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
There were no executable files found in this plugin236 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP370130236

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin