79% logpress

Code Review | LogPress

WordPress plugin LogPress scored79%from 54 tests.

About plugin

  • Plugin page: logpress
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 12, 2018
  • Latest release: Oct 13, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: pbimal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /531 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by LogPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1638.70 ▼5.41
Dashboard /wp-admin3.33 ▼0.0248.25 ▼28.12
Posts /wp-admin/edit.php3.38 ▲0.0243.33 ▼12.78
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.47 ▼19.04
Media Library /wp-admin/upload.php3.25 ▲0.0232.60 ▼10.52

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: 1 new table, 6 new options
New tables
debug_logpress
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for LogPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8014.17 ▼0.022.47 ▲0.5740.89 ▼9.98
Dashboard /wp-admin2,207 ▲335.60 ▲0.0694.26 ▼4.2438.29 ▼8.08
Posts /wp-admin/edit.php2,115 ▲152.01 ▼0.0241.29 ▲0.1340.69 ▼1.97
Add New Post /wp-admin/post-new.php1,536 ▲1023.32 ▲0.32645.69 ▼68.9454.90 ▼5.88
Media Library /wp-admin/upload.php1,412 ▲124.18 ▲0.0298.29 ▼25.4342.42 ▼11.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • debug_logpress
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (report) image not found
  • Tags: The plugin tags were not defined
You can take inspiration from this readme.txt

logpress/logpress.php Passed 13 tests

The primary PHP file in "LogPress" version 1.0.0 is used by WordPress to initiate all plugin functionality
27 characters long description:
Displays latest page access

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
Success! There were no dangerous files found in this plugin77 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP212877

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected