Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/wp-activity-logger/WPActivityLogger.php+59
Uncaught ArgumentCountError: Too few arguments to function WPActivityLogger::log_activation(), 1 passed in wp-includes/class-wp-hook.php on line 312 and exactly 2 expected in wp-content/plugins/wp-activity-logger/WPActivityLogger.php:59
Stack trace:
#0 wp-includes/class-wp-hook.php(312): WPActivityLogger->log_activation()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.43ms] Passed 4 tests
Analyzing server-side resources used by WP Activity Logger
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.02 | 40.57 ▼3.82 |
Dashboard /wp-admin | 3.37 ▲0.03 | 50.09 ▼1.50 |
Posts /wp-admin/edit.php | 3.49 ▲0.09 | 50.07 ▲0.19 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.03 | 85.65 ▼24.59 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 37.96 ▲4.05 |
WP Activity Logger /wp-admin/options-general.php?page=WPActivityLogger | 3.26 | 35.11 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Activity Logger: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.71 ▲0.34 | 1.87 ▲0.04 | 44.43 ▲0.98 |
Dashboard /wp-admin | 2,196 ▲19 | 5.63 ▼0.05 | 95.41 ▲7.29 | 41.31 ▼2.68 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.04 | 36.32 ▼1.18 | 33.79 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.23 ▼0.27 | 671.99 ▼58.44 | 56.62 ▲0.96 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.01 | 104.64 ▼1.28 | 46.85 ▲3.37 |
WP Activity Logger /wp-admin/options-general.php?page=WPActivityLogger | 791 | 2.03 | 27.41 | 28.98 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Error in wp-content/plugins/wp-activity-logger/WPActivityLogger.php+63
Uncaught ArgumentCountError: Too few arguments to function WPActivityLogger::log_deactivation(), 1 passed in wp-includes/class-wp-hook.php on line 312 and exactly 2 expected in wp-content/plugins/wp-activity-logger/WPActivityLogger.php:63
Stack trace:
#0 wp-includes/class-wp-hook.php(312): WPActivityLogger->log_deactivation()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(830): do_action() - This plugin has failed uninstalling correctly, leaving 3 files (0.01MB) in the plugin directory
- (new file) WPActivityLogger.php
- (new file) readme.txt
- (new file) templates/admin_page.html.php
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=WPActivityLogger
- > 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=WPActivityLogger
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=WPActivityLogger
- > Warning in wp-admin/includes/template.php+1771
call_user_func() expects parameter 1 to be a valid callback, class 'WPActivityLogger' does not have a method 'section_info'
- > GET request to /wp-admin/options-general.php?page=WPActivityLogger
- > Notice in wp-content/plugins/wp-activity-logger/WPActivityLogger.php+140
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 screen_icon() in wp-content/plugins/wp-activity-logger/templates/admin_page.html.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/wp-activity-logger/WPActivityLogger.php:39
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: plugin, security, admin, notification
wp-activity-logger/WPActivityLogger.php 92% from 13 tests
"WP Activity Logger" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-activity-logger.php" instead of "WPActivityLogger.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin91 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 52 | 91 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 1 | 8.33% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin