89% last-posts-modified

Code Review | Last Modified Posts

WordPress plugin Last Modified Posts scored89%from 54 tests.

About plugin

  • Plugin page: last-posts-modified
  • Plugin version: 3.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Feb 29, 2016
  • Latest release: May 27, 2021
  • Number of updates: 15
  • Update frequency: every 127.7 days
  • Top authors: freetools (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,921 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.39ms] Passed 4 tests

Analyzing server-side resources used by Last Modified Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.60 ▼1.95
Dashboard /wp-admin3.35 ▲0.0451.67 ▼3.75
Posts /wp-admin/edit.php3.46 ▲0.1050.85 ▼0.58
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.44 ▲0.71
Media Library /wp-admin/upload.php3.27 ▲0.0437.38 ▲0.75

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_last-posts-modified
widget_recent-posts

Browser metrics Passed 4 tests

Last Modified Posts: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.23 ▼0.301.83 ▲0.0944.49 ▼1.87
Dashboard /wp-admin2,195 ▲215.63 ▼0.0393.36 ▼8.4645.85 ▼1.29
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.1234.19 ▼4.3732.79 ▼2.97
Add New Post /wp-admin/post-new.php1,526 ▼223.00 ▼0.11690.77 ▲14.0053.38 ▼3.16
Media Library /wp-admin/upload.php1,400 ▲64.27 ▲0.1795.50 ▼7.1646.12 ▼2.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_last-posts-modified
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

last-posts-modified/widget-lastpostsmodified.php 92% from 13 tests

Analyzing the main PHP file in "Last Modified Posts" version 3.6
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("last-posts-modified.php" instead of "widget-lastpostsmodified.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected208 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP45374156
PO File191432
CSS16120

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/image/thumbnail.png1.89KB1.11KB▼ 40.97%