Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.13ms] Passed 4 tests
An overview of server-side resources used by Media Consumption Log
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.11 ▼8.76 |
Dashboard /wp-admin | 3.35 ▲0.00 | 47.29 ▼12.18 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 42.30 ▼5.11 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 91.89 ▼6.45 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.39 ▲0.09 |
Serials Status /wp-admin/admin.php?page=mcl-serials-status | 3.23 | 30.80 |
Forgotten /wp-admin/admin.php?page=mcl-forgotten | 3.24 | 32.41 |
Settings /wp-admin/admin.php?page=mcl-settings | 3.25 | 33.46 |
Quick Post /wp-admin/admin.php?page=mcl-quick-post | 3.24 | 30.66 |
Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_mcl_status |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
mcl_db_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Media Consumption Log
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.17 ▼0.21 | 1.48 ▼0.07 | 38.54 ▼0.51 |
Dashboard /wp-admin | 2,236 ▲56 | 5.64 ▼0.01 | 83.61 ▼0.62 | 40.76 ▼1.01 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 1.96 ▼0.03 | 36.76 ▼4.53 | 33.98 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,565 ▲37 | 18.42 ▼4.73 | 599.95 ▼39.39 | 61.99 ▲13.15 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.22 ▲0.05 | 94.52 ▼1.34 | 43.72 ▲4.43 |
Serials Status /wp-admin/admin.php?page=mcl-serials-status | 816 | 1.69 | 25.30 | 26.45 |
Forgotten /wp-admin/admin.php?page=mcl-forgotten | 813 | 1.66 | 24.68 | 24.63 |
Settings /wp-admin/admin.php?page=mcl-settings | 1,212 | 1.81 | 23.90 | 30.15 |
Quick Post /wp-admin/admin.php?page=mcl-quick-post | 813 | 1.69 | 24.13 | 24.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_mcl_status
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- mcl_db_version
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/media-consumption-log/MclStatus.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-consumption-log/MclHooks.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/media-consumption-log/MclAdminHooks.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/media-consumption-log/MclStatistics.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/media-consumption-log/MclAdminHooks.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #4 in media-consumption-log/assets to your readme.txt
media-consumption-log/media-consumption-log.php 92% from 13 tests
This is the main PHP file of "Media Consumption Log" version 2.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,944 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 722 | 335 | 2,505 |
JavaScript | 3 | 63 | 42 | 353 |
CSS | 3 | 22 | 42 | 86 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 34.83 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 5.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 72 | 98.63% |
▷ Public methods | 61 | 83.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 16.44% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 28 | |
▷ Global constants | 1 | 3.57% |
▷ Class constants | 27 | 96.43% |
▷ Public constants | 27 | 100.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
There are no PNG files in this plugin