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.20MB] [CPU: ▼2.47ms] Passed 4 tests
This is a short check of server-side resources used by MSTW CSV EXPORTER
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 40.59 ▲3.06 |
Dashboard /wp-admin | 3.50 ▲0.20 | 46.03 ▼0.96 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 46.76 ▲3.68 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 82.78 ▼14.81 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.62 ▲2.82 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
mstw_csvx_version |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for MSTW CSV EXPORTER
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.46 ▲0.09 | 1.78 ▲0.06 | 40.26 ▼0.27 |
Dashboard /wp-admin | 2,218 ▲30 | 5.88 ▼0.14 | 98.29 ▼4.50 | 91.02 ▲48.41 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.02 ▼0.03 | 37.26 ▲0.18 | 31.44 ▼5.04 |
Add New Post /wp-admin/post-new.php | 1,682 ▲137 | 22.48 ▲4.11 | 729.43 ▲100.39 | 49.82 ▼15.33 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.25 ▼0.01 | 99.10 ▲2.74 | 43.58 ▼0.62 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- mstw_csvx_version
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template() in wp-content/plugins/mstw-csv-exporter/includes/mstw-csvx-globals.php:23
- > PHP Warning
include_once(WP_PLUGIN_DIR/mstw-csv-exporter/includes/mstw-csvx-globals.php): failed to open stream: No such file or directory in wp-content/plugins/mstw-csv-exporter/mstw-csv-exporter.php on line 40
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mstw-csv-exporter/mstw-csv-exporter.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mstw-csv-exporter/templates/mstw-csv-settings.php:24
- > PHP Warning
include_once(): Failed opening 'WP_PLUGIN_DIR/mstw-csv-exporter/includes/mstw-csvx-globals.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/mstw-csv-exporter/mstw-csv-exporter.php on line 40
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mstw-csv-exporter/includes/mstw-csvx-globals.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mstw-csv-exporter/mstw-csv-exporter.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
8 plugin tags: mstw schedules scoreboards, schedules scoreboards, csv, team rosters, mstw team rosters...
mstw-csv-exporter/mstw-csv-exporter.php 92% from 13 tests
The main PHP file in "MSTW CSV EXPORTER" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,293 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 308 | 738 | 1,275 |
JavaScript | 1 | 4 | 10 | 14 |
CSS | 1 | 4 | 23 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/mstw-admin-menu-icon.png | 51.45KB | 0.27KB | ▼ 99.47% |