90% post-revision

Code Review | Post Revision

WordPress plugin Post Revision scored90%from 54 tests.

About plugin

  • Plugin page: post-revision
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2013
  • Latest release: Jun 10, 2014
  • Number of updates: 23
  • Update frequency: every 7.7 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▼0.29MB] [CPU: ▼15.38ms] Passed 4 tests

An overview of server-side resources used by Post Revision
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.57 ▼1.40
Dashboard /wp-admin3.34 ▲0.0450.16 ▼4.10
Posts /wp-admin/edit.php3.40 ▲0.0352.23 ▼3.36
Add New Post /wp-admin/post-new.php4.64 ▼1.2645.40 ▼49.94
Media Library /wp-admin/upload.php3.27 ▲0.0334.11 ▼4.11
Post Revision /wp-admin/options-general.php?page=post-revision/post-revision-menu.php3.2436.23

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options
buffercode_post_revision_order
buffercode_post_revision_bg_color
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
buffercode_post_revision_custom_heading
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Post Revision
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.26 ▼0.091.78 ▼0.1043.48 ▼2.95
Dashboard /wp-admin2,204 ▲275.67 ▼0.0088.01 ▼6.9938.88 ▼3.01
Posts /wp-admin/edit.php2,106 ▲92.00 ▲0.0238.32 ▲2.1834.47 ▼2.62
Add New Post /wp-admin/post-new.php6,233 ▲4,70725.69 ▲2.17903.25 ▲272.3858.60 ▼0.57
Media Library /wp-admin/upload.php1,409 ▲64.17 ▼0.02100.75 ▼0.8441.44 ▼5.14
Post Revision /wp-admin/options-general.php?page=post-revision/post-revision-menu.php8671.9627.1326.39

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • buffercode_post_revision_custom_heading
    • buffercode_post_revision_order
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • buffercode_post_revision_bg_color

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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Last update reason option), #2 (Setting page for Post Revision), #3 (Ouput for the post revision)
Please take inspiration from this readme.txt

post-revision/post-revision.php Passed 13 tests

"Post Revision" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
109 characters long description:
Through this plugin, user can able to show the post revision done on the each post with latest update reason.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin958 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript113837822
PHP24634136

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions9
▷ Named functions9100.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
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/hv.png2.80KB7.32KB0.00%
screenshot-1.png6.95KB2.99KB▼ 56.97%
screenshot-2.png23.01KB8.48KB▼ 63.13%
screenshot-3.PNG25.45KB10.72KB▼ 57.88%
js/hs.png2.62KB7.54KB0.00%