10% angry-creative-logger

Code Review | Angry Creative Inspector

WordPress plugin Angry Creative Inspector scored 10% from 54 tests.

About plugin

  • Plugin page: angry-creative-lo...
  • Plugin version: 0.8.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.4
  • WordPress version: 6.3.1
  • First release: Sep 12, 2013
  • Latest release: Sep 8, 2015
  • Number of updates: 73
  • Update frequency: every 10.0 days
  • Top authors: samface (87.67%)ac-robin (13.7%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,444 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Compile error in wp-content/plugins/angry-creative-logger/classes/settings.php+573
    'continue' not in the 'loop' or 'switch' context

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

Analyzing server-side resources used by Angry Creative Inspector
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.30 ▼0.48
Dashboard /wp-admin3.31 ▲0.0144.98 ▼6.57
Posts /wp-admin/edit.php3.36 ▲0.0146.92 ▼1.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.23 ▼7.08
Media Library /wp-admin/upload.php3.23 ▲0.0132.31 ▼4.42

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 15 new options
New WordPress options
aci_ACI_Routine_Log_User_Registrations_options
aci_ACI_Routine_Check_DB_Collations_options
aci_ACI_Routine_Log_User_Profile_Update_options
widget_recent-posts
aci_ACI_Routine_Log_JS_Errors_options
aci_ACI_Routine_Log_Plugin_Change_options
db_upgraded
aci_ACI_Routine_Check_File_Permissions_options
widget_theysaidso_widget
aci_ACI_Routine_Check_Git_Status_options
...

Browser metrics Passed 4 tests

Angry Creative Inspector: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.76 ▼0.914.58 ▲2.6643.55 ▼7.04
Dashboard /wp-admin2,206 ▲185.86 ▲0.05110.57 ▼7.8940.94 ▼2.75
Posts /wp-admin/edit.php2,092 ▲32.05 ▼0.0839.10 ▼1.6833.25 ▼1.01
Add New Post /wp-admin/post-new.php1,533 ▼13523.16 ▲0.83662.29 ▲86.8653.37 ▼6.89
Media Library /wp-admin/upload.php1,388 ▼34.26 ▲0.0695.85 ▼0.8043.80 ▲2.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 15 options
    • theysaidso_admin_options
    • aci_ACI_Routine_Check_DB_Collations_options
    • aci_ACI_Routine_Log_User_Registrations_options
    • widget_theysaidso_widget
    • aci_ACI_Routine_Log_User_Profile_Update_options
    • db_upgraded
    • aci_ACI_Log_User_Capability_Change_options
    • aci_ACI_Routine_Check_Git_Status_options
    • widget_recent-posts
    • can_compress_scripts
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/angry-creative-logger/git/test/test-suite.php
    • > /wp-content/plugins/angry-creative-logger/git/Git.php
  • 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function aci_register_routine() in wp-content/plugins/angry-creative-logger/routines/user_cap_change.php:35
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/angry-creative-logger/routines/git_status.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function aci_register_routine() in wp-content/plugins/angry-creative-logger/routines/db_collations.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function aci_register_routine() in wp-content/plugins/angry-creative-logger/routines/plugin_change.php:19
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/angry-creative-logger/routines/file_permissions.php on line 52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/angry-creative-logger/routines/user_site_register.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function aci_register_routine() in wp-content/plugins/angry-creative-logger/routines/user_profile_update.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function aci_register_routine() in wp-content/plugins/angry-creative-logger/routines/site_visibility.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/angry-creative-logger/plugin.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function aci_register_routine() in wp-content/plugins/angry-creative-logger/routines/user_register.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt might help

angry-creative-logger/plugin.php 92% from 13 tests

"Angry Creative Inspector" version 0.8.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("angry-creative-logger.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,317 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP201,2681,0292,173
CSS2292120
Markdown19013
JSON1006
JavaScript2515

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity33.50
▷ Minimum class complexity1.00
▷ Maximum class complexity191.00
Average method complexity5.39
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods149
▷ Static methods8959.73%
▷ Public methods13590.60%
▷ Protected methods10.67%
▷ Private methods138.72%
Functions11
▷ Named functions545.45%
▷ Anonymous functions654.55%
Constants29
▷ Global constants517.24%
▷ Class constants2482.76%
▷ Public constants24100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin