Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Parse error in wp-content/plugins/kickpress/kickpress-functions.php+991
syntax error, unexpected 'new' (T_NEW)
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.28ms] Passed 4 tests
A check of server-side resources used by KickPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.25 ▲7.29 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.07 ▲1.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.95 ▲3.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.43 ▼21.28 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.39 ▼1.45 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 199 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
KickPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.22 ▼1.16 | 1.79 ▼0.31 | 42.99 ▲5.84 |
Dashboard /wp-admin | 2,209 ▲20 | 5.02 ▲0.05 | 103.79 ▼20.41 | 39.23 ▼8.08 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▼0.01 | 34.00 ▼8.43 | 34.83 ▲0.28 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.21 ▲0.20 | 654.26 ▲67.34 | 54.70 ▼5.84 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.19 ▼0.03 | 98.06 ▼4.53 | 42.13 ▼2.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/kickpress/examples/kickpress-authentication-test.php
- > /wp-content/plugins/kickpress/examples/oauth/kickpress-oauth-authorize.php
- > /wp-content/plugins/kickpress/kickpress-schema.php
- > /wp-content/plugins/kickpress/kickpress-barcode.php
- 85× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'kickpress_form_elements' not found in wp-content/plugins/kickpress/elements/class-list.php:3
- > PHP Fatal error
Uncaught Error: Class 'kickpress_form_elements' not found in wp-content/plugins/kickpress/elements/class-field-sort-direction.php:3
- > PHP Fatal error
Uncaught Error: Class 'kickpress_form_elements' not found in wp-content/plugins/kickpress/elements/class-password.php:3
- > PHP Fatal error
Uncaught Error: Class 'kickpress_form_elements' not found in wp-content/plugins/kickpress/elements/class-post-type-fields.php:3
- > PHP Notice
Trying to get property 'posts' of non-object in wp-content/plugins/kickpress/kickpress.php on line 47
- > PHP Fatal error
Uncaught Error: Class 'kickpress_form_elements' not found in wp-content/plugins/kickpress/elements/class-date.php:3
- > PHP Fatal error
Uncaught Error: Class 'kickpress_form_elements' not found in wp-content/plugins/kickpress/elements/class-post-types.php:3
- > PHP Fatal error
Uncaught Error: Class 'kickpress_form_elements' not found in wp-content/plugins/kickpress/elements/class-list.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kickpress/kickpress-application.php:3
- > PHP Fatal error
Uncaught Error: Class 'kickpress_api_handler' not found in wp-content/plugins/kickpress/handlers/class-people.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== kickpress ===
) - Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Screenshot #1 (Adding new Post Types through the WordPress admin interface.) image missing
kickpress/kickpress.php Passed 13 tests
This is the main PHP file of "KickPress" version 0.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
Allows for apps, themes, and APIs to be built using WordPress as a php framework
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
Success! There were no dangerous files found in this plugin23,664 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 93 | 4,109 | 1,700 | 17,292 |
PO File | 17 | 2,439 | 4,497 | 5,281 |
JavaScript | 5 | 162 | 54 | 681 |
XML | 2 | 0 | 0 | 330 |
CSS | 4 | 8 | 5 | 80 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 18.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 672.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 76 | |
▷ Abstract classes | 1 | 1.32% |
▷ Concrete classes | 75 | 98.68% |
▷ Final classes | 0 | 0.00% |
Methods | 470 | |
▷ Static methods | 24 | 5.11% |
▷ Public methods | 415 | 88.30% |
▷ Protected methods | 10 | 2.13% |
▷ Private methods | 45 | 9.57% |
Functions | 257 | |
▷ Named functions | 255 | 99.22% |
▷ Anonymous functions | 2 | 0.78% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
50 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/icons/bullet_arrow_bottom.png | 0.22KB | 0.28KB | 0.00% |
includes/images/icons/calendar_view_week.png | 0.47KB | 0.57KB | 0.00% |
includes/images/icons/page_white_excel.png | 0.65KB | 0.63KB | ▼ 2.41% |
includes/images/icons/delete.png | 0.70KB | 0.72KB | 0.00% |
includes/images/toolbar_bg_over.png | 0.20KB | 0.32KB | 0.00% |