Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-roles.php+276
Illegal offset type in isset or empty
Server metrics [RAM: ▲1.44MB] [CPU: ▲0.21ms] Passed 4 tests
Server-side resources used by Callsheet
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.90 ▲1.44 | 44.01 ▲4.45 |
Dashboard /wp-admin | 4.75 ▲1.41 | 54.33 ▼1.88 |
Posts /wp-admin/edit.php | 4.80 ▲1.45 | 53.72 ▲9.11 |
Add New Post /wp-admin/post-new.php | 7.35 ▲1.47 | 90.90 ▼10.84 |
Media Library /wp-admin/upload.php | 4.68 ▲1.45 | 44.11 ▲11.46 |
Values /wp-admin/admin.php?page=callsheet-values | 4.68 | 40.22 |
/wp-admin/admin.php?page=callsheet-edit | 5.94 | 39.25 |
Slider /wp-admin/admin.php?page=callsheet-home-slider | 4.72 | 43.67 |
Page url /wp-admin/admin.php?page=callsheet-page-url | 4.70 | 45.56 |
All Clients /wp-admin/admin.php?page=callsheet | 4.65 | 38.16 |
Import/Export /wp-admin/admin.php?page=callsheet-import-export | 4.63 | 38.70 |
Add New Client /wp-admin/admin.php?page=callsheet-add-new | 4.60 | 36.98 |
API Detail /wp-admin/admin.php?page=callsheet-api | 4.59 | 36.65 |
Server storage [IO: ▲2.64MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 78 new files
Database: 21 new tables, 6 new options
New tables |
---|
wp_call_sheet_other |
wp_call_sheet_tv |
wp_call_sheet_education |
wp_call_sheet_setting |
wp_call_sheet_at_festival |
wp_call_sheet_theater |
wp_call_sheet_commercial |
wp_call_sheet_awards |
wp_call_sheet_client_master |
wp_call_sheet_tags_master |
... |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Callsheet: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲191 | 13.64 ▼0.74 | 5.00 ▲2.75 | 41.67 ▼1.57 |
Dashboard /wp-admin | 2,260 ▲72 | 5.87 ▲0.96 | 105.90 ▼5.52 | 41.23 ▼0.40 |
Posts /wp-admin/edit.php | 2,146 ▲57 | 2.01 ▲0.01 | 37.61 ▼3.70 | 36.05 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,557 ▲22 | 17.40 ▼5.85 | 682.44 ▲82.72 | 52.53 ▲3.76 |
Media Library /wp-admin/upload.php | 1,445 ▲63 | 4.17 ▼0.03 | 98.64 ▼4.83 | 42.03 ▼1.37 |
Values /wp-admin/admin.php?page=callsheet-values | 1,758 | 4.27 | 60.14 | 78.42 |
/wp-admin/admin.php?page=callsheet-edit | 1,967 | 3.80 | 65.69 | 65.89 |
Slider /wp-admin/admin.php?page=callsheet-home-slider | 1,678 | 7.82 | 142.00 | 38.09 |
Page url /wp-admin/admin.php?page=callsheet-page-url | 1,265 | 3.94 | 51.52 | 24.74 |
All Clients /wp-admin/admin.php?page=callsheet | 1,260 | 3.29 | 51.49 | 33.44 |
Import/Export /wp-admin/admin.php?page=callsheet-import-export | 1,135 | 2.61 | 38.05 | 27.65 |
Add New Client /wp-admin/admin.php?page=callsheet-add-new | 1,017 | 2.60 | 38.78 | 27.69 |
API Detail /wp-admin/admin.php?page=callsheet-api | 982 | 2.58 | 37.97 | 25.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-roles.php+276
Illegal offset type in isset or empty
- This plugin does not fully uninstall, leaving 21 tables in the database
- wp_call_sheet_education
- wp_call_sheet_internet
- wp_call_sheet_on_tv
- wp_call_sheet_commercial
- wp_call_sheet_tags_master
- wp_call_sheet_tv
- wp_call_sheet_social
- wp_call_sheet_film
- wp_call_sheet_on_air
- wp_call_sheet_other
- ...
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=callsheet-edit
- > Notice in wp-content/plugins/callsheet/admin/partials/callsheet-admin-edit.php+33
Undefined index: client_id
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/callsheet/admin/partials/callsheet-admin-edit.php
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/callsheet/admin/partials/callsheet-admin-api.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/callsheet/admin/partials/callsheet-home-slider.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/callsheet/public/partials/callsheet-public-list.php:7
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/callsheet/admin/partials/callsheet-admin-api.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/callsheet/admin/partials/callsheet-admin-add-new-old.php:17
- > PHP Fatal error
Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/callsheet/admin/partials/callsheet-admin-display.php:39
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/callsheet/admin/partials/callsheet-values.php:26
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/callsheet/public/partials/callsheet-public-display.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/callsheet/admin/partials/callsheet-page-urls.php:2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/callsheet/admin/partials/callsheet-admin-display.php on line 20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: writers, cinematographers, actors, actresses, directors
callsheet/callsheet.php Passed 13 tests
The primary PHP file in "Callsheet" version 1.0.9 is used by WordPress to initiate all plugin functionality
99 characters long description:
Callsheet allows you to add actors/actresses/directors and their details to show them to end users.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected21,149 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 5,093 | 1,623 | 10,988 |
JavaScript | 10 | 5,156 | 988 | 7,994 |
CSS | 10 | 108 | 91 | 1,578 |
PO File | 1 | 139 | 316 | 301 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 32.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 11 | 10.19% |
▷ Public methods | 66 | 61.11% |
▷ Protected methods | 2 | 1.85% |
▷ Private methods | 40 | 37.04% |
Functions | 124 | |
▷ Named functions | 124 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.87MB with 0.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-6.png | 82.06KB | 30.43KB | ▼ 62.92% |
public/images/arrow-leftt_b.png | 1.38KB | 0.39KB | ▼ 71.35% |
public/images/basics-cross-black.png | 1.04KB | 0.25KB | ▼ 75.70% |
public/images/basics-cross.png | 1.05KB | 0.27KB | ▼ 74.30% |
admin/image/offline-icon.png | 2.04KB | 0.55KB | ▼ 73.04% |