68% aalogwp

Code Review | aaLogWP

WordPress plugin aaLogWP scored 68% 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: 5.9.2
  • 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 / 720 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼2.30MB] [CPU: ▼342.41ms] Passed 4 tests

Server-side resources used by aaLogWP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.454.59 ▼43.75
Dashboard /wp-admin2.08 ▼1.325.43 ▼27.06
Posts /wp-admin/edit.php2.08 ▼1.564.24 ▼33.68
Add New Post /wp-admin/post-new.php2.08 ▼4.894.28 ▼1,265.14
Media Library /wp-admin/upload.php2.08 ▼1.224.60 ▼25.74
aaLog Options /wp-admin/options-general.php?page=aalogwp_settings2.084.55

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 2 new options
New WordPress options
aalog_filename
aalog_cookie

Browser metrics Passed 4 tests

A check of browser resources used by aaLogWP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲3616.18 ▲0.165.89 ▼0.902.14 ▼0.27
Dashboard /wp-admin2,897 ▲366.12 ▼0.02115.68 ▼12.92152.49 ▼6.14
Posts /wp-admin/edit.php2,693 ▼13.23 ▼0.0163.01 ▼1.80136.92 ▼1.30
Add New Post /wp-admin/post-new.php1,755 ▲321.87 ▲0.70451.09 ▲2.58156.78 ▲0.24
Media Library /wp-admin/upload.php1,700 ▲25.54 ▲0.05136.91 ▼0.33188.55 ▲0.81
aaLog Options /wp-admin/options-general.php?page=aalogwp_settings1,1192.3856.05146.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > 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
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • aalog_filename
    • aalog_cookie

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > 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+5326
    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+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: logging, benchmarking

aalogwp/aalogwp.php Passed 13 tests

Analyzing the main PHP file in "aaLogWP" version 1.0.2
33 characters long description:
Allows logging data to a logfile.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin339 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP39435334
Markdown1405

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin