Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/pencil-wiki/pencil-wiki.php+765
Declaration of Pencil_Wiki_Walker_Page::start_lvl(&$output, $depth) should be compatible with Walker_Page::start_lvl(&$output, $depth = 0, $args = Array)
Server metrics [RAM: ▼1.75MB] [CPU: ▼55.62ms] Passed 4 tests
Analyzing server-side resources used by Pencil Wiki
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.24 ▼1.22 | 6.34 ▼29.85 |
Dashboard /wp-admin | 2.26 ▼1.08 | 5.91 ▼56.29 |
Posts /wp-admin/edit.php | 2.27 ▼1.09 | 6.43 ▼42.03 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.62 | 6.00 ▼92.76 |
Media Library /wp-admin/upload.php | 2.27 ▼0.96 | 5.44 ▼31.40 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_pwiki_widget_edit_page_link |
can_compress_scripts |
recovery_mode_email_last_sent |
widget_pwiki_widget_tree |
widget_pwiki_widget_add_page_link |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pencil Wiki
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,489 ▼1,272 | 12.63 ▼1.61 | 1.87 ▲0.29 | 41.74 ▼0.06 |
Dashboard /wp-admin | 877 ▼1,303 | 1.36 ▼4.16 | 12.62 ▼73.62 | 16.81 ▼26.75 |
Posts /wp-admin/edit.php | 888 ▼1,212 | 1.51 ▼0.46 | 6.72 ▼29.14 | 20.96 ▼15.32 |
Add New Post /wp-admin/post-new.php | 610 ▼916 | 1.71 ▼21.31 | 22.56 ▼647.48 | 7.98 ▼54.91 |
Media Library /wp-admin/upload.php | 773 ▼624 | 1.71 ▼2.49 | 19.28 ▼85.02 | 19.35 ▼27.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/pencil-wiki/pencil-wiki.php+765
Declaration of Pencil_Wiki_Walker_Page::start_lvl(&$output, $depth) should be compatible with Walker_Page::start_lvl(&$output, $depth = 0, $args = Array)
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_pwiki_widget_add_page_link
- can_compress_scripts
- widget_pwiki_search
- theysaidso_admin_options
- widget_recent-comments
- widget_pwiki_widget_edit_page_link
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- recovery_mode_email_last_sent
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pencil-wiki/_inc/theme-default/single-wiki_page-tree.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pencil-wiki/_inc/theme-default/single-wiki_page.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function pwiki_get_template_part() in wp-content/plugins/pencil-wiki/theme/single-wiki_page.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function pwiki_get_template_part() in wp-content/plugins/pencil-wiki/theme/loop-wiki_page.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pencil-wiki/pwiki-revisions.php:154
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/pencil-wiki/pencil-wiki.php:102
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pencil-wiki/pwiki-widgets.php:8
- > 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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: wiki, documentation
pencil-wiki/pencil-wiki.php Passed 13 tests
This is the main PHP file of "Pencil Wiki" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Pencil Wiki is a simple wiki solution for your Wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,108 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 453 | 343 | 936 |
PO File | 1 | 52 | 53 | 126 |
CSS | 1 | 11 | 3 | 46 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 1 | 2.08% |
▷ Public methods | 47 | 97.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.08% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_inc/images/lock.png | 0.82KB | 0.66KB | ▼ 20.02% |
_inc/images/lock-grey.png | 1.35KB | 0.45KB | ▼ 66.71% |