Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼1.36ms] Passed 4 tests
An overview of server-side resources used by Thinkery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 40.92 ▲0.07 |
Dashboard /wp-admin | 3.53 ▲0.23 | 47.48 ▲0.88 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 46.07 ▲0.92 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 85.70 ▼7.32 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.15 ▲2.09 |
Tags /wp-admin/edit-tags.php?taxonomy=thinkery_tag&post_type=thinkery_thing | 3.44 | 34.37 |
All Things /wp-admin/edit.php?post_type=thinkery_thing | 3.49 | 38.57 |
Save URL /wp-admin/edit.php?post_type=thinkery_thing&page=thinkery-save-url | 3.41 | 29.56 |
Settings /wp-admin/edit.php?post_type=thinkery_thing&page=thinkery-settings | 3.42 | 32.78 |
Add New /wp-admin/post-new.php?post_type=thinkery_thing | 3.57 | 50.79 |
Server storage [IO: ▲0.37MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 103 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Thinkery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.28 ▼0.98 | 1.78 ▼0.45 | 43.13 ▲2.21 |
Dashboard /wp-admin | 2,252 ▲66 | 5.86 ▲0.91 | 100.11 ▼10.80 | 39.63 ▼1.79 |
Posts /wp-admin/edit.php | 2,138 ▲70 | 2.02 ▲0.00 | 38.38 ▲1.80 | 30.70 ▼3.03 |
Add New Post /wp-admin/post-new.php | 1,563 ▲30 | 23.22 ▲0.06 | 596.06 ▼87.33 | 56.04 ▲2.12 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.21 ▲0.04 | 97.58 ▼2.83 | 41.77 ▼4.81 |
Tags /wp-admin/edit-tags.php?taxonomy=thinkery_tag&post_type=thinkery_thing | 1,313 | 2.14 | 27.71 | 27.19 |
All Things /wp-admin/edit.php?post_type=thinkery_thing | 1,107 | 1.93 | 30.53 | 31.01 |
Save URL /wp-admin/edit.php?post_type=thinkery_thing&page=thinkery-save-url | 804 | 2.03 | 24.23 | 24.63 |
Settings /wp-admin/edit.php?post_type=thinkery_thing&page=thinkery-settings | 805 | 2.18 | 24.57 | 24.27 |
Add New /wp-admin/post-new.php?post_type=thinkery_thing | 2,348 | 7.60 | 168.68 | 63.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=thinkery_thing&page=thinkery-save-url
- > Notice in wp-content/plugins/thinkery/templates/admin/save-url.php+16
Undefined variable: url
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/thinkery/templates/thinkery/header/sidebar.php
- > /wp-content/plugins/thinkery/templates/importer/footer.php
- > /wp-content/plugins/thinkery/templates/thinkery/list/no-thing.php
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/thinkery/templates/thinkery/list/thing.php:9
- > PHP Notice
Trying to get property 'query' of non-object in wp-content/plugins/thinkery/templates/thinkery/header/sidebar.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/thinkery/templates/thinkery/footer.php:10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/thinkery/templates/thinkery/header/sidebar.php on line 159
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/thinkery/templates/admin/settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/thinkery/templates/admin/save-url.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/thinkery/templates/thinkery/header/sidebar.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/thinkery/templates/importer/step0.php:2
- > PHP Notice
Undefined variable: active in wp-content/plugins/thinkery/templates/thinkery/list/thing.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Thinkery' not found in wp-content/plugins/thinkery/templates/thinkery/things.php:8
- > 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 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (The thinkery frontend.)
thinkery/thinkery.php 92% from 13 tests
The main file in "Thinkery" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected6,635 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 753 | 257 | 4,500 |
PHP | 23 | 330 | 811 | 2,044 |
Markdown | 1 | 13 | 0 | 57 |
XML | 1 | 4 | 2 | 14 |
SVG | 1 | 0 | 0 | 11 |
CSS | 6 | 2 | 57 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 46.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 230.00 |
Average method complexity | 5.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 3 | 3.75% |
▷ Public methods | 66 | 82.50% |
▷ Protected methods | 7 | 8.75% |
▷ Private methods | 7 | 8.75% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
58 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/sprite/kbd.png | 0.87KB | 1.31KB | 0.00% |
img/sprite/icn_public.png | 0.18KB | 0.12KB | ▼ 32.97% |
img/sprite/icn_edit_hover.png | 0.19KB | 0.14KB | ▼ 28.93% |
img/sprite/icn_permalink_hover.png | 0.18KB | 0.12KB | ▼ 32.07% |
img/sprite/icn_list_shared.png | 0.57KB | 0.49KB | ▼ 14.16% |