84% wp-post-updated

Code Review | WP POST Updated

WordPress plugin WP POST Updated scored 84% from 54 tests.

About plugin

  • Plugin page: wp-post-updated
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.5
  • WordPress version: 5.9.2
  • First release: Sep 9, 2015
  • Latest release: Jun 16, 2016
  • Number of updates: 70
  • Update frequency: every 4.0 days
  • Top authors: sebastien@thivinfo.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,157 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.21MB] [CPU: ▼311.95ms] Passed 4 tests

An overview of server-side resources used by WP POST Updated
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1755.85 ▲5.88
Dashboard /wp-admin3.54 ▲0.1334.21 ▼1.52
Posts /wp-admin/edit.php3.76 ▲0.1239.80 ▼2.73
Add New Post /wp-admin/post-new.php5.76 ▼1.2156.95 ▼1,249.12
Media Library /wp-admin/upload.php3.41 ▲0.1232.78 ▲5.57
Abonnés /wp-admin/admin.php?page=subscriber3.3826.03
Newsletter /wp-admin/admin.php?page=thfo_newsletter3.4434.00
Options /wp-admin/admin.php?page=options3.3826.17
WP Post Updated /wp-admin/admin.php?page=wp-post-updated3.3824.66

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 1 new table, 2 new options
New tables
wp_thfo_newsletter_email
New WordPress options
widget_thfo_newsletter
wp_post_updated_version

Browser metrics Passed 4 tests

A check of browser resources used by WP POST Updated
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,807 ▲5315.30 ▼0.326.15 ▲0.172.00 ▼0.59
Dashboard /wp-admin2,938 ▲846.12 ▼0.06117.06 ▼18.66177.26 ▲3.05
Posts /wp-admin/edit.php2,732 ▲413.13 ▼0.1263.80 ▲0.03197.54 ▲52.81
Add New Post /wp-admin/post-new.php1,780 ▲14822.40 ▲1.81473.95 ▲53.83182.17 ▼6.71
Media Library /wp-admin/upload.php1,743 ▲485.53 ▲0.00128.45 ▼16.06207.17 ▲21.47
Abonnés /wp-admin/admin.php?page=subscriber1,0032.3955.34168.64
Newsletter /wp-admin/admin.php?page=thfo_newsletter1,9458.48152.52262.86
Options /wp-admin/admin.php?page=options1,1242.3894.92155.05
WP Post Updated /wp-admin/admin.php?page=wp-post-updated1,0192.3852.67200.15

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 2 options
    • widget_thfo_newsletter
    • wp_post_updated_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-post-updated/wp-post-updated.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-post-updated/class/newsletterwidget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-post-updated/class/newsletter.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: notifier, update, subscription, post, status...

wp-post-updated/wp-post-updated.php 92% from 13 tests

The main PHP file in "WP POST Updated" ver. 1.3.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin459 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP715078441
CSS12018

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.43
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods41
▷ Static methods717.07%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png0.71KB0.76KB0.00%