Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.59MB] [CPU: ▼8.44ms] Passed 4 tests
A check of server-side resources used by tinySource
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 47.33 ▲6.01 |
Dashboard /wp-admin | 3.39 ▲0.09 | 58.92 ▲4.54 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 55.73 ▲7.52 |
Add New Post /wp-admin/post-new.php | 3.24 ▼2.64 | 43.46 ▼50.18 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 41.26 ▲5.88 |
Settings /wp-admin/edit.php?post_type=tinysource&page=tinysource_settings | 3.28 | 37.82 |
Add New /wp-admin/post-new.php?post_type=tinysource | 3.22 | 40.97 |
Sources /wp-admin/edit.php?post_type=tinysource | 3.34 | 40.92 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
tinySource: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.12 ▼1.26 | 1.82 ▲0.04 | 43.95 ▼2.22 |
Dashboard /wp-admin | 2,237 ▲63 | 4.87 ▼0.07 | 102.85 ▼13.47 | 38.75 ▼7.75 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.03 ▲0.04 | 40.69 ▲6.92 | 35.10 ▲1.06 |
Add New Post /wp-admin/post-new.php | 6,492 ▲4,958 | 22.20 ▼0.54 | 889.74 ▲245.21 | 60.42 ▲3.24 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.19 ▼0.15 | 96.22 ▼4.36 | 42.15 ▲1.15 |
Settings /wp-admin/edit.php?post_type=tinysource&page=tinysource_settings | 809 | 2.06 | 25.02 | 24.37 |
Add New /wp-admin/post-new.php?post_type=tinysource | 2,238 | 7.61 | 180.44 | 64.68 |
Sources /wp-admin/edit.php?post_type=tinysource | 1,081 | 1.93 | 29.69 | 31.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=tinysource
- > Notice in wp-content/plugins/tinysource/tinysource.php+86
Trying to get property 'ID' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=tinysource
- > Notice in wp-content/plugins/tinysource/tinysource.php+43
Undefined index: link
- > GET request to /wp-admin/post-new.php?post_type=tinysource
- > Notice in wp-content/plugins/tinysource/tinysource.php+86
Undefined index: order
- > GET request to /wp-admin/post-new.php?post_type=tinysource
- > Notice in wp-content/plugins/tinysource/tinysource.php+91
Undefined index: _tinysource_source
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=tinysource
- > Notice in wp-content/plugins/tinysource/tinysource.php+44
Trying to access array offset on value of type null
- > GET request to /wp-admin/post-new.php?post_type=tinysource
- > Notice in wp-content/plugins/tinysource/tinysource.php+44
Undefined index: tinysource_order
SRP 50% 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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/tinysource/tinysource.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: text, custom-post-type, source
tinysource/tinysource.php Passed 13 tests
The main PHP script in "tinySource" version 0.2.3 is automatically included on every request by WordPress
31 characters long description:
Simple tool to note text source
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 plugin151 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 41 | 151 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin