90% revision-notes

Code Review | Revision Notes

WordPress plugin Revision Notes scored90%from 54 tests.

About plugin

  • Plugin page: revision-notes
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Oct 6, 2015
  • Latest release: Feb 25, 2021
  • Number of updates: 10
  • Update frequency: every 196.9 days
  • Top authors: helen (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,750 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.18ms] Passed 4 tests

A check of server-side resources used by Revision Notes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.59 ▲1.12
Dashboard /wp-admin3.34 ▲0.0348.73 ▼3.62
Posts /wp-admin/edit.php3.39 ▲0.0347.75 ▼4.12
Add New Post /wp-admin/post-new.php5.87 ▼0.0286.83 ▼0.02
Media Library /wp-admin/upload.php3.26 ▲0.0337.50 ▼0.97

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Revision Notes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.081.65 ▼0.0241.38 ▼5.33
Dashboard /wp-admin2,209 ▲184.85 ▼0.05100.58 ▼5.6539.46 ▼4.11
Posts /wp-admin/edit.php2,095 ▲32.02 ▲0.0138.25 ▲0.3633.21 ▼3.27
Add New Post /wp-admin/post-new.php1,686 ▲15822.33 ▲3.92635.79 ▲18.6460.68 ▲11.90
Media Library /wp-admin/upload.php1,382 ▼94.30 ▲0.06103.57 ▼0.0243.85 ▼4.63

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
There were not plugin tags detected

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

The main PHP file in "Revision Notes" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
117 characters long description:
Add a note explaining the changes you're about to save. It's like commit messages, except for your WordPress content.

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
There were no executable files found in this plugin164 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24137132
JavaScript23332

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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.42
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin