Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼3.78ms] Passed 4 tests
Analyzing server-side resources used by Monthly Data Sheets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 36.68 ▼1.14 |
Dashboard /wp-admin | 3.57 ▲0.26 | 47.64 ▼1.93 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 52.41 ▲2.43 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 87.82 ▼13.87 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 38.53 ▲1.84 |
All Data Sheets /wp-admin/edit.php?post_type=datasheet | 3.53 | 41.26 |
Categories /wp-admin/edit-tags.php?taxonomy=datasheet_category&post_type=datasheet | 3.48 | 35.29 |
Data Sheets /wp-admin/options-general.php?page=monthly_data_sheets_settings | 3.44 | 33.02 |
Add New /wp-admin/post-new.php?post_type=datasheet | 3.59 | 49.00 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_mds_sheet_data |
wp_mds_sheet |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
mds_db_version |
can_compress_scripts |
monthly_data_sheets_settings |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Monthly Data Sheets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲196 | 13.74 ▼0.63 | 5.79 ▲3.93 | 41.70 ▼5.66 |
Dashboard /wp-admin | 2,242 ▲60 | 4.88 ▼1.02 | 111.20 ▲5.13 | 36.48 ▼10.09 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.05 ▲0.05 | 34.85 ▼1.61 | 33.18 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,550 ▲16 | 23.08 ▲0.03 | 615.84 ▲19.53 | 56.73 ▼3.76 |
Media Library /wp-admin/upload.php | 1,430 ▲45 | 4.45 ▲0.18 | 97.65 ▼8.82 | 40.76 ▼9.39 |
All Data Sheets /wp-admin/edit.php?post_type=datasheet | 1,115 | 2.13 | 34.38 | 33.78 |
Categories /wp-admin/edit-tags.php?taxonomy=datasheet_category&post_type=datasheet | 1,307 | 2.27 | 26.55 | 25.58 |
Data Sheets /wp-admin/options-general.php?page=monthly_data_sheets_settings | 974 | 2.21 | 23.47 | 30.64 |
Add New /wp-admin/post-new.php?post_type=datasheet | 2,457 | 7.72 | 173.78 | 68.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_mds_sheet
- wp_mds_sheet_data
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- mds_db_version
- widget_recent-posts
- widget_recent-comments
- monthly_data_sheets_settings
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=datasheet
- > User deprecated in wp-includes/functions.php+5737
Function WP_User->id was called with an argument that is deprecated since version 2.1.0! Use WP_User->ID instead.
SRP 50% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/monthly-data-sheets/monthly-data-sheets.php
- > /wp-content/plugins/monthly-data-sheets/lib/settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: appointments, book, sheet, logbook, diary...
monthly-data-sheets/monthly-data-sheets.php 92% from 13 tests
The main PHP script in "Monthly Data Sheets" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,116 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 229 | 433 | 945 |
JavaScript | 2 | 32 | 45 | 89 |
CSS | 2 | 22 | 8 | 82 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 27.80 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 23 | 52.27% |
▷ Public methods | 43 | 97.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.27% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin