Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.64ms] Passed 4 tests
A check of server-side resources used by Audit Trail
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.08 ▲0.45 |
Dashboard /wp-admin | 3.33 ▼0.02 | 58.39 ▼0.34 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 43.79 ▼1.67 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.03 ▼9.01 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.14 ▲2.68 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_audit_trail |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
audit_trail |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Audit Trail
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.17 ▼0.49 | 1.88 ▲0.32 | 46.11 ▲5.94 |
Dashboard /wp-admin | 2,199 ▲25 | 5.62 ▼0.01 | 97.56 ▲12.73 | 47.15 ▲5.51 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▲0.06 | 33.76 ▼2.02 | 34.93 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.12 ▲0.35 | 645.39 ▼29.69 | 52.60 ▲2.08 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.26 ▲0.08 | 95.91 ▼1.74 | 43.66 ▼0.89 |
Audit Trail /wp-admin/audit-trail.php | 26 | 0.42 | 0.07 | 14.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_audit_trail
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- audit_trail
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/audit-trail/view/admin/support.php
- > /wp-content/plugins/audit-trail/csv.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/audit-trail/models/pager.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/audit-trail/audit-trail.php:302
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/audit-trail.php
- > Network (severe)
wp-admin/audit-trail.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Audit trail) image not found
audit-trail/audit-trail.php Passed 13 tests
The main file in "Audit Trail" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
80 characters long description:
Keep a log of exactly what is happening behind the scenes of your WordPress blog
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
Good job! No executable or dangerous file extensions detected3,227 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 9 | 882 | 1,021 | 2,016 |
PHP | 17 | 320 | 240 | 1,076 |
CSS | 1 | 29 | 0 | 132 |
Markdown | 1 | 1 | 0 | 3 |
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.39 |
Average class complexity | 29.20 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 7 | 8.75% |
▷ Public methods | 74 | 92.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 7.50% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete.png | 1.11KB | 1.01KB | ▼ 8.56% |
screenshot-1.png | 6.65KB | 6.63KB | 0.29% |
images/csv.png | 0.80KB | 0.93KB | 0.00% |