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.79MB] [CPU: ▼340.20ms] Passed 4 tests
A check of server-side resources used by Activity Logs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.56 ▼0.96 | 9.94 ▼40.29 |
Dashboard /wp-admin | 2.61 ▼0.80 | 10.05 ▼22.88 |
Posts /wp-admin/edit.php | 2.61 ▼1.03 | 10.63 ▼28.40 |
Add New Post /wp-admin/post-new.php | 2.61 ▼4.36 | 11.10 ▼1,262.75 |
Media Library /wp-admin/upload.php | 2.61 ▼0.69 | 8.99 ▼29.36 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_activity_log |
New WordPress options |
---|
cookspin_wppref_dummy_reading |
cookspin_wppref_dummy_general |
cookspin_wppref_dummy_media |
cookspin_wppref_dummy_discussion |
cookspin_wppref_dummy_permalink |
cookspin_has_log |
cookspin_wppref_dummy_writing |
cookspin_log_db_version |
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 / | 3,840 ▲98 | 15.94 ▲0.35 | 6.75 ▲0.77 | 2.03 ▼0.14 |
Dashboard /wp-admin | 2,968 ▲107 | 6.03 ▼0.09 | 116.44 ▼15.06 | 169.37 ▲7.90 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.24 ▲0.01 | 62.59 ▼3.05 | 138.44 ▼3.96 |
Add New Post /wp-admin/post-new.php | 1,773 ▲13 | 20.72 ▲3.72 | 453.38 ▲17.32 | 171.73 ▲23.92 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.48 ▼0.04 | 143.17 ▼4.99 | 188.18 ▼6.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/activity-logs/loggers.php+265
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_activity_log
- The uninstall procedure has failed, leaving 8 options in the database
- cookspin_wppref_dummy_discussion
- cookspin_log_db_version
- cookspin_wppref_dummy_reading
- cookspin_has_log
- cookspin_wppref_dummy_media
- cookspin_wppref_dummy_permalink
- cookspin_wppref_dummy_general
- cookspin_wppref_dummy_writing
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > 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 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: activity
activity-logs/functions.php 85% from 13 tests
Analyzing the main PHP file in "Activity Logs" version 1.1
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("activity-logs.php" instead of "functions.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
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
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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
There were not PNG files found in your plugin