83% update-messages-for-old-posts

Code Review | Push Update Messages To Old Posts

WordPress plugin Push Update Messages To Old Posts scored83%from 54 tests.

About plugin

  • Plugin page: update-messages-f...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.5.0
  • WordPress version: 6.3.1
  • First release: Feb 1, 2016
  • Latest release: Mar 23, 2016
  • Number of updates: 3
  • Update frequency: every 17.3 days
  • Top authors: Elvin.Haci (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.63ms] Passed 4 tests

An overview of server-side resources used by Push Update Messages To Old Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.15 ▼3.66
Dashboard /wp-admin3.38 ▲0.0749.23 ▼7.76
Posts /wp-admin/edit.php3.43 ▲0.0748.98 ▼4.82
Add New Post /wp-admin/post-new.php5.96 ▲0.0798.18 ▼6.29
Media Library /wp-admin/upload.php3.30 ▲0.0736.33 ▼0.01
Tags /wp-admin/edit-tags.php?taxonomy=guaven_update_push_tag&post_type=gf_up_push3.2933.62
Update push for old posts /wp-admin/edit.php?post_type=gf_up_push3.3436.31
Push Update Boxes To Old Content /wp-admin/options-general.php?page=update-messages-for-old-posts/functions.php3.2733.89
Add New /wp-admin/post-new.php?post_type=gf_up_push3.4347.90

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Push Update Messages To Old Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.21 ▼1.171.76 ▼0.3343.33 ▼9.25
Dashboard /wp-admin2,238 ▲505.87 ▲0.9997.32 ▼25.2335.93 ▼8.35
Posts /wp-admin/edit.php2,124 ▲322.00 ▼0.0436.34 ▼8.3032.90 ▼4.15
Add New Post /wp-admin/post-new.php1,559 ▲3018.46 ▼0.10636.19 ▲4.5254.44 ▼4.42
Media Library /wp-admin/upload.php1,426 ▲414.23 ▼0.0696.37 ▼4.7543.31 ▼1.70
Tags /wp-admin/edit-tags.php?taxonomy=guaven_update_push_tag&post_type=gf_up_push1,2742.1428.6028.94
Update push for old posts /wp-admin/edit.php?post_type=gf_up_push1,0872.0034.5533.11
Push Update Boxes To Old Content /wp-admin/options-general.php?page=update-messages-for-old-posts/functions.php7972.0324.3425.56
Add New /wp-admin/post-new.php?post_type=gf_up_push2,5227.83176.6264.84

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/update-messages-for-old-posts/functions.php:40

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Screenshot 1), #2 (Screenshot 2), #3 (Screenshot 3), #4 (Screenshot 4), #5 (Screenshot 5), #6 (Screenshot 6)
The official readme.txt might help

update-messages-for-old-posts/guaven_updatepusher.php 77% from 13 tests

The main file in "Push Update Messages To Old Posts" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("update-messages-for-old-posts.php" instead of "guaven_updatepusher.php")
  • 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 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,419 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS143431,151
PHP48022268

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.57MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png70.83KB29.13KB▼ 58.88%
icons.png6.91KB4.18KB▼ 39.44%
screenshot-2.png119.56KB44.14KB▼ 63.08%
screenshot-3.png106.93KB41.54KB▼ 61.15%
screenshot-6.png55.84KB23.12KB▼ 58.61%