Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.51ms] Passed 4 tests
A check of server-side resources used by Lyon Site Activity
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.07 ▼5.88 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.07 ▼4.57 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.58 ▲0.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 96.26 ▼7.88 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.13 ▲1.82 |
Site Activity /wp-admin/tools.php?page=site-activity | 3.27 | 31.61 |
Site Activity /wp-admin/options-general.php?page=site-activity-settings | 3.19 | 33.52 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Lyon Site Activity
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 14.48 ▼0.11 | 1.79 ▲0.09 | 38.74 ▼8.78 |
Dashboard /wp-admin | 2,211 ▲23 | 5.81 ▼0.01 | 106.08 ▼6.60 | 36.60 ▼6.85 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▲0.00 | 38.89 ▼1.16 | 35.02 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,553 ▲33 | 18.16 ▼5.08 | 605.41 ▼116.69 | 64.12 ▲9.23 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.24 ▼0.03 | 94.24 ▼6.07 | 41.10 ▼4.27 |
Site Activity /wp-admin/tools.php?page=site-activity | 1,040 | 2.21 | 23.01 | 101.60 |
Site Activity /wp-admin/options-general.php?page=site-activity-settings | 985 | 2.24 | 26.74 | 39.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=site-activity
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (3) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- > GET request to /wp-admin/options-general.php?page=site-activity-settings
- > Notice in wp-content/plugins/lyon-site-activity/includes/class-lyon-site-activity-admin.php+137
Undefined index: Taxonomies
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=site-activity-settings
- > Notice in wp-content/plugins/lyon-site-activity/includes/class-lyon-site-activity-admin.php+137
Trying to access array offset on value of type null
- > GET request to /wp-admin/options-general.php?page=site-activity-settings
- > Notice in wp-content/plugins/lyon-site-activity/includes/class-lyon-site-activity-admin.php+137
Undefined index: post_tag
- > GET request to /wp-admin/options-general.php?page=site-activity-settings
- > Notice in wp-content/plugins/lyon-site-activity/includes/class-lyon-site-activity-admin.php+137
Undefined index: Attachments
SRP 0% 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
Almost there! Just fix the following items
- 9× PHP files output text when accessed directly:
- > /wp-content/plugins/lyon-site-activity/includes/lyon_site_activity_constants.php
- > /wp-content/plugins/lyon-site-activity/lyon-site-activity.php
- > /wp-content/plugins/lyon-site-activity/includes/class-lyon-site-activity-admin.php
- > /wp-content/plugins/lyon-site-activity/includes/class-lyon-site-activity-i18n.php
- > /wp-content/plugins/lyon-site-activity/includes/class-lyon-site-activity-deactivator.php
- > /wp-content/plugins/lyon-site-activity/includes/class-lyon-site-activity-sql.php
- > /wp-content/plugins/lyon-site-activity/includes/class-lyon-site-activity.php
- > /wp-content/plugins/lyon-site-activity/includes/class-lyon-site-activity-loader.php
- > /wp-content/plugins/lyon-site-activity/includes/class-lyon-site-activity-activator.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/lyon-site-activity/includes/class-lyon-site-activity-list-table.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: admin, site activity, logging
lyon-site-activity/lyon-site-activity.php Passed 13 tests
"Lyon Site Activity" version 2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
104 characters long description:
A simple, lightweight plugin that gives site administrators an at-a-glance view of recent content edits.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected811 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 151 | 450 | 640 |
CSS | 1 | 17 | 2 | 93 |
JavaScript | 1 | 24 | 1 | 78 |
PHP code Passed 2 tests
This is a short overview 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.33 |
Average class complexity | 7.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 34 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin