84% recently-edited-content-widget

Code Review | Recently Edited Content Widget

WordPress plugin Recently Edited Content Widget scored84%from 54 tests.

About plugin

  • Plugin page: recently-edited-c...
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.4.0
  • WordPress version: 6.3.1
  • First release: Jan 21, 2014
  • Latest release: Dec 9, 2015
  • Number of updates: 21
  • Update frequency: every 33.7 days
  • Top authors: webdeveric (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /5,326 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.59ms] Passed 4 tests

A check of server-side resources used by Recently Edited Content Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1136.38 ▼1.70
Dashboard /wp-admin3.46 ▲0.1549.19 ▲3.63
Posts /wp-admin/edit.php3.53 ▲0.1750.23 ▲4.34
Add New Post /wp-admin/post-new.php5.99 ▲0.1080.08 ▼7.21
Media Library /wp-admin/upload.php3.34 ▲0.1033.93 ▼1.08

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Recently Edited Content Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,020 ▲27413.36 ▼1.231.77 ▼0.0729.78 ▼8.70
Dashboard /wp-admin2,423 ▲2355.06 ▲0.20115.93 ▲13.1550.82 ▲8.29
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0246.49 ▲8.1433.32 ▲1.21
Add New Post /wp-admin/post-new.php1,540 ▲2623.46 ▲5.99667.78 ▼107.0059.86 ▲6.32
Media Library /wp-admin/upload.php1,391 ▼04.18 ▲0.0195.88 ▼3.1940.32 ▼5.92

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 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 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recently-edited-content-widget/recently-edited-content-widget.php:25

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: widget, user preferences, recent content, dashboard, dashboard widget...

recently-edited-content-widget/recently-edited-content-widget.php Passed 13 tests

The main file in "Recently Edited Content Widget" v. 0.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
This plugin provides a dashboard widget that shows content you have modified recently.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,179 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP115115500
Sass2510249
JavaScript352113219
JSON3290210
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity103.00
▷ Minimum class complexity103.00
▷ Maximum class complexity103.00
Average method complexity4.92
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods26100.00%
▷ Public methods2284.62%
▷ Protected methods415.38%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
9 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
imgs/icon-image.png0.59KB0.59KB0.00%
imgs/wavy-lines-green.png0.10KB0.10KB0.00%
imgs/red-x.png0.13KB0.13KB0.00%
imgs/wavy-lines.png0.09KB0.10KB0.00%
imgs/45-deg-white.png0.17KB0.19KB0.00%