Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.73ms] Passed 4 tests
A check of server-side resources used by Postsquirrel
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.25 ▼0.62 |
Dashboard /wp-admin | 3.33 ▼0.01 | 44.69 ▼15.80 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.48 ▲3.25 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 81.42 ▼17.99 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 30.87 ▼0.52 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_psl_data |
wp_psl_networks |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Postsquirrel
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 13.23 ▼1.33 | 1.54 ▼0.19 | 40.59 ▼7.16 |
Dashboard /wp-admin | 2,224 ▲36 | 5.85 ▼0.05 | 108.63 ▼6.23 | 73.24 ▲26.77 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.01 ▼0.01 | 40.10 ▲4.16 | 35.99 ▼0.59 |
Add New Post /wp-admin/post-new.php | 6,190 ▲4,667 | 23.83 ▲0.78 | 946.81 ▲329.45 | 56.96 ▼11.95 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.26 ▲0.04 | 100.28 ▼0.42 | 75.91 ▲33.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_psl_networks
- wp_psl_data
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/inc/meta_box.php on line 7
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/core/postsquirrel.php on line 22
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/inc/meta_box.php on line 8
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/core/postsquirrel.php on line 21
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/inc/connected_data.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/postsquirrel/psl.php:11
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/postsquirrel/core/postsquirrel.php:25
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/core/postsquirrel.php on line 21
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/core/postsquirrel.php on line 22
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/postsquirrel/core/postsquirrel.php:25
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: postsquirrel, social media manager, manage social accounts, share posts, social media tool...
postsquirrel/psl.php 92% from 13 tests
"Postsquirrel" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("postsquirrel.php" instead of "psl.php")
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
Good job! No executable or dangerous file extensions detected587 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 134 | 8 | 437 |
JavaScript | 1 | 17 | 0 | 79 |
CSS | 1 | 0 | 0 | 71 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 55.56% |
▷ Protected methods | 4 | 44.44% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/menu.png | 0.67KB | 0.84KB | 0.00% |