90% recent-edits

Code Review | Recent Edits

WordPress plugin Recent Edits scored90%from 54 tests.

About plugin

  • Plugin page: recent-edits
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Oct 1, 2014
  • Latest release: Oct 2, 2014
  • Number of updates: 22
  • Update frequency: N/A
  • Top authors: i3dthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,810 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.85ms] Passed 4 tests

Analyzing server-side resources used by Recent Edits
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0147.50 ▼2.66
Dashboard /wp-admin3.32 ▲0.0149.31 ▼8.09
Posts /wp-admin/edit.php3.37 ▲0.0150.59 ▲3.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.98 ▲0.25
Media Library /wp-admin/upload.php3.25 ▲0.0140.71 ▲3.11

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Recent Edits
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▼0.001.96 ▼0.2143.31 ▼1.25
Dashboard /wp-admin2,192 ▲185.62 ▲0.0495.75 ▼13.4640.56 ▼6.88
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0341.75 ▲0.1636.77 ▲3.07
Add New Post /wp-admin/post-new.php1,526 ▼022.81 ▼0.44670.97 ▲32.0352.02 ▼2.86
Media Library /wp-admin/upload.php1,394 ▼34.17 ▼0.11108.39 ▼6.2547.99 ▲0.63

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === recent-edits === )
The official readme.txt might help

recent-edits/recent-edits.php Passed 13 tests

The primary PHP file in "Recent Edits" version 1.0 is used by WordPress to initiate all plugin functionality
135 characters long description:
The Recent Edits plugin is simple plugin that shows the most recent Pages or Posts that you haved edited, from the Pages or Posts menu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin71 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2322971

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin