10% callsheet

Code Review | Callsheet

WordPress plugin Callsheet scored10%from 54 tests.

About plugin

  • Plugin page: callsheet
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Jan 24, 2019
  • Latest release: Dec 18, 2019
  • Number of updates: 116
  • Update frequency: every 2.9 days
  • Top authors: callsheet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,017 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.90 ▲1.4444.01 ▲4.45
Dashboard /wp-admin4.75 ▲1.4154.33 ▼1.88
Posts /wp-admin/edit.php4.80 ▲1.4553.72 ▲9.11
Add New Post /wp-admin/post-new.php7.35 ▲1.4790.90 ▼10.84
Media Library /wp-admin/upload.php4.68 ▲1.4544.11 ▲11.46
Values /wp-admin/admin.php?page=callsheet-values4.6840.22
/wp-admin/admin.php?page=callsheet-edit5.9439.25
Slider /wp-admin/admin.php?page=callsheet-home-slider4.7243.67
Page url /wp-admin/admin.php?page=callsheet-page-url4.7045.56
All Clients /wp-admin/admin.php?page=callsheet4.6538.16
Import/Export /wp-admin/admin.php?page=callsheet-import-export4.6338.70
Add New Client /wp-admin/admin.php?page=callsheet-add-new4.6036.98
API Detail /wp-admin/admin.php?page=callsheet-api4.5936.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲19113.64 ▼0.745.00 ▲2.7541.67 ▼1.57
Dashboard /wp-admin2,260 ▲725.87 ▲0.96105.90 ▼5.5241.23 ▼0.40
Posts /wp-admin/edit.php2,146 ▲572.01 ▲0.0137.61 ▼3.7036.05 ▲0.04
Add New Post /wp-admin/post-new.php1,557 ▲2217.40 ▼5.85682.44 ▲82.7252.53 ▲3.76
Media Library /wp-admin/upload.php1,445 ▲634.17 ▼0.0398.64 ▼4.8342.03 ▼1.37
Values /wp-admin/admin.php?page=callsheet-values1,7584.2760.1478.42
/wp-admin/admin.php?page=callsheet-edit1,9673.8065.6965.89
Slider /wp-admin/admin.php?page=callsheet-home-slider1,6787.82142.0038.09
Page url /wp-admin/admin.php?page=callsheet-page-url1,2653.9451.5224.74
All Clients /wp-admin/admin.php?page=callsheet1,2603.2951.4933.44
Import/Export /wp-admin/admin.php?page=callsheet-import-export1,1352.6138.0527.65
Add New Client /wp-admin/admin.php?page=callsheet-add-new1,0172.6038.7827.69
API Detail /wp-admin/admin.php?page=callsheet-api9822.5837.9725.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP255,0931,62310,988
JavaScript105,1569887,994
CSS10108911,578
PO File1139316301
SVG100288

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 code0.23
Average class complexity32.56
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods108
▷ Static methods1110.19%
▷ Public methods6661.11%
▷ Protected methods21.85%
▷ Private methods4037.04%
Functions124
▷ Named functions124100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants110.00%
▷ Class constants990.00%
▷ Public constants9100.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
FileSize - originalSize - compressedSavings
assets/screenshot-6.png82.06KB30.43KB▼ 62.92%
public/images/arrow-leftt_b.png1.38KB0.39KB▼ 71.35%
public/images/basics-cross-black.png1.04KB0.25KB▼ 75.70%
public/images/basics-cross.png1.05KB0.27KB▼ 74.30%
admin/image/offline-icon.png2.04KB0.55KB▼ 73.04%