Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.58ms] Passed 4 tests
An overview of server-side resources used by Metronet Log
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.07 ▼5.64 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.37 ▲1.24 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 43.80 ▼0.38 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 76.60 ▼17.52 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 36.11 ▲1.46 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mt_log |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Metronet Log
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.63 ▼0.93 | 1.73 ▼0.20 | 38.03 ▼7.15 |
Dashboard /wp-admin | 2,200 ▲15 | 5.79 ▼0.07 | 101.27 ▼16.67 | 39.63 ▼3.85 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.00 | 33.42 ▼4.14 | 34.60 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.19 ▲0.05 | 652.91 ▼24.09 | 56.60 ▲6.38 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.16 ▼0.03 | 95.59 ▼1.37 | 43.32 ▲1.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% 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 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
- 3× 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/metronet-log/metronet-log-view.php:157
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/metronet-log/class-metronet-log-list-table.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/metronet-log/metronet-log.php:369
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: users, api, log, logging
metronet-log/metronet-log-view.php 92% from 13 tests
Analyzing the main PHP file in "Metronet Log" version 0.1
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("metronet-log.php" instead of "metronet-log-view.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
Everything looks great! No dangerous files found in this plugin404 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 84 | 228 | 404 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 25 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.85% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin