68% aalogwp

Code Review | aaLogWP

WordPress plugin aaLogWP scored68%from 54 tests.

About plugin

  • Plugin page: aalogwp
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 28, 2014
  • Latest release: Jul 7, 2014
  • Number of updates: 6
  • Update frequency: every 2.0 days
  • Top authors: alfred3x (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /886 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.73MB] [CPU: ▼51.51ms] Passed 4 tests

An overview of server-side resources used by aaLogWP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.26 ▼1.215.28 ▼33.88
Dashboard /wp-admin2.28 ▼1.036.95 ▼41.54
Posts /wp-admin/edit.php2.28 ▼1.087.48 ▼39.36
Add New Post /wp-admin/post-new.php2.28 ▼3.616.30 ▼91.27
Media Library /wp-admin/upload.php2.28 ▼0.956.19 ▼30.75
aaLog Options /wp-admin/options-general.php?page=aalogwp_settings2.286.64

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
aalog_cookie
widget_recent-posts
aalog_filename
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for aaLogWP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.20 ▼1.111.72 ▼0.1143.53 ▲3.65
Dashboard /wp-admin2,210 ▲194.84 ▼0.06117.56 ▲17.7740.95 ▼1.01
Posts /wp-admin/edit.php2,090 ▲12.00 ▼0.0033.00 ▼8.6734.07 ▼0.80
Add New Post /wp-admin/post-new.php1,522 ▼2023.18 ▲4.78676.30 ▲55.6453.27 ▲4.57
Media Library /wp-admin/upload.php1,389 ▲74.28 ▲0.0899.63 ▲0.2742.70 ▼0.27
aaLog Options /wp-admin/options-general.php?page=aalogwp_settings8502.0724.3440.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/aalogwp/aalog.php+6
    Methods with the same name as their class will not be constructors in a future version of PHP; aaLog has a deprecated constructor
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • aalog_cookie
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • aalog_filename

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=aalogwp_settings
    • > Deprecated in wp-content/plugins/aalogwp/aalog.php+6
    Methods with the same name as their class will not be constructors in a future version of PHP; aaLog has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=aalogwp_settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=aalogwp_settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aalogwp/aalogwp_options_page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aalogwp/aalogwp.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: logging, benchmarking

aalogwp/aalogwp.php Passed 13 tests

"aaLogWP" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
33 characters long description:
Allows logging data to a logfile.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected339 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP39435334
Markdown1405

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity28.00
▷ Minimum class complexity17.00
▷ Maximum class complexity39.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin