10% wp-log

Code Review | WP Log

WordPress plugin WP Log scored10%from 54 tests.

About plugin

  • Plugin page: wp-log
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: May 6, 2013
  • Latest release: May 7, 2013
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: vahidd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,975 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Compile error in wp-content/plugins/wp-log/wp-logs.php+41
    Cannot use $this as parameter

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.03ms] Passed 4 tests

A check of server-side resources used by WP Log
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.03 ▼5.71
Dashboard /wp-admin3.31 ▲0.0047.13 ▲2.62
Posts /wp-admin/edit.php3.36 ▲0.0047.18 ▼1.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.54 ▼9.34
Media Library /wp-admin/upload.php3.23 ▲0.0032.77 ▼3.15

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

WP Log: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.27 ▲0.041.83 ▲0.1440.74 ▼3.51
Dashboard /wp-admin2,198 ▲285.62 ▲0.0183.95 ▼16.3937.95 ▼0.17
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0136.85 ▼5.2830.14 ▼10.81
Add New Post /wp-admin/post-new.php1,540 ▲1418.67 ▼4.51616.56 ▲7.8387.82 ▲14.83
Media Library /wp-admin/upload.php1,400 ▲34.15 ▼0.04101.44 ▲0.5242.20 ▼4.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Cannot use $this as parameter in wp-content/plugins/wp-log/wp-logs.php on line 41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (2.) image required
The official readme.txt might help

wp-log/wp-logs.php 85% from 13 tests

The main file in "WP Log" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-log.php" instead of "wp-logs.php")

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 plugin792 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP68115629
PO File25897142
CSS15021

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
images/icon.png1.25KB0.59KB▼ 52.77%