90% wp-posts-log

Code Review | WordPress Posts Log

WordPress plugin WordPress Posts Log scored90%from 54 tests.

About plugin

  • Plugin page: wp-posts-log
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Apr 3, 2019
  • Latest release: Apr 3, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: oztaser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /555 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.75ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Posts Log
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.03 ▼1.31
Dashboard /wp-admin3.36 ▲0.0654.54 ▲2.13
Posts /wp-admin/edit.php3.48 ▲0.1249.55 ▼2.93
Add New Post /wp-admin/post-new.php5.94 ▲0.0687.77 ▼8.96
Media Library /wp-admin/upload.php3.28 ▲0.0632.83 ▼5.78

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Posts Log
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.25 ▲0.091.70 ▼0.2643.70 ▼1.30
Dashboard /wp-admin2,207 ▲275.55 ▼0.1181.15 ▼6.2936.14 ▼11.12
Posts /wp-admin/edit.php2,112 ▲92.00 ▲0.0235.52 ▼4.6934.60 ▼3.49
Add New Post /wp-admin/post-new.php1,547 ▲2018.34 ▼4.86631.35 ▼19.0963.17 ▲3.27
Media Library /wp-admin/upload.php1,409 ▲94.26 ▲0.15100.91 ▼11.8644.23 ▼3.93

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: activity, activity log, author log, post log

wp-posts-log/wp-posts-log.php 92% from 13 tests

The principal PHP file in "WordPress Posts Log" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected218 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP54511185
PO File110033

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity4.80
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin