Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▼6.50ms] Passed 4 tests
This is a short check of server-side resources used by Social Planner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.48 | 46.41 ▲9.07 |
Dashboard /wp-admin | 3.79 ▲0.44 | 45.14 ▼15.36 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 43.90 ▼0.11 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 83.19 ▼10.69 |
Media Library /wp-admin/upload.php | 3.65 ▲0.41 | 35.94 ▲0.16 |
Social Planner /wp-admin/options-general.php?page=social-planner | 3.62 | 31.67 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Planner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 14.43 ▼0.11 | 1.74 ▼0.17 | 43.92 ▲2.10 |
Dashboard /wp-admin | 2,243 ▲69 | 5.54 ▲0.04 | 81.72 ▼5.33 | 41.62 ▲1.31 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.02 | 35.40 ▼1.10 | 33.24 ▼4.86 |
Add New Post /wp-admin/post-new.php | 6,229 ▲4,703 | 18.90 ▼4.70 | 875.90 ▲197.89 | 53.52 ▼6.33 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.17 ▼0.04 | 93.41 ▼7.02 | 40.97 ▼3.48 |
Social Planner /wp-admin/options-general.php?page=social-planner | 853 | 2.04 | 22.69 | 25.10 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% 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 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Social_Planner\\esc_html_e() in wp-content/plugins/social-planner/templates/settings.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
social-planner/social-planner.php Passed 13 tests
The primary PHP file in "Social Planner" version 1.3.0 is used by WordPress to initiate all plugin functionality
126 characters long description:
This plugin automatically publishes posts from your blog to your social media accounts on Facebook, Twitter, VK.com, Telegram.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,594 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 750 | 1,411 | 1,996 |
JavaScript | 3 | 313 | 257 | 848 |
CSS | 3 | 0 | 0 | 750 |
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.33 |
Average class complexity | 20.92 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 129 | |
▷ Static methods | 129 | 100.00% |
▷ Public methods | 66 | 51.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 63 | 48.84% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 30 | |
▷ Global constants | 5 | 16.67% |
▷ Class constants | 25 | 83.33% |
▷ Public constants | 25 | 100.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
There were not PNG files found in your plugin