Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.32MB] [CPU: ▼43.86ms] Passed 4 tests
A check of server-side resources used by Activity Logs
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.67 ▼0.79 | 10.57 ▼27.82 |
Dashboard /wp-admin | 2.69 ▼0.62 | 13.88 ▼36.15 |
Posts /wp-admin/edit.php | 2.69 ▼0.67 | 12.69 ▼35.02 |
Add New Post /wp-admin/post-new.php | 2.69 ▼3.20 | 15.24 ▼76.45 |
Media Library /wp-admin/upload.php | 2.69 ▼0.54 | 14.05 ▼19.44 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_activity_log |
New WordPress options |
---|
cookspin_wppref_dummy_permalink |
cookspin_wppref_dummy_writing |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
cookspin_log_db_version |
theysaidso_admin_options |
cookspin_wppref_dummy_general |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Activity Logs: 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,852 ▲106 | 14.77 ▲0.57 | 1.86 ▲0.28 | 38.87 ▼1.35 |
Dashboard /wp-admin | 2,258 ▲73 | 5.90 ▲1.00 | 109.20 ▲3.47 | 46.72 ▲3.80 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.02 | 40.00 ▲3.05 | 37.44 ▲3.71 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.44 ▲0.31 | 589.99 ▼61.87 | 63.01 ▲8.02 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.15 ▼0.00 | 95.39 ▲1.35 | 41.00 ▼1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/activity-logs/loggers.php+265
Function create_function() is deprecated
- The uninstall procedure failed, leaving 1 table in the database
- wp_activity_log
- This plugin does not fully uninstall, leaving 14 options in the database
- cookspin_wppref_dummy_writing
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- cookspin_wppref_dummy_permalink
- widget_recent-comments
- theysaidso_admin_options
- cookspin_wppref_dummy_discussion
- cookspin_log_db_version
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/activity-logs/loggers.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/activity-logs/loggers.php:4
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: activity
activity-logs/functions.php 85% from 13 tests
The main PHP file in "Activity Logs" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("activity-logs.php" instead of "functions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,914 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 221 | 103 | 1,325 |
PO File | 2 | 164 | 177 | 435 |
LESS | 1 | 32 | 7 | 133 |
JavaScript | 2 | 0 | 0 | 20 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 5.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 73 | |
▷ Named functions | 73 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin