Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.64ms] Passed 4 tests
An overview of server-side resources used by LITTLE Social
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.69 ▲1.14 |
Dashboard /wp-admin | 3.41 ▲0.06 | 51.42 ▼13.65 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 50.79 ▼0.26 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 87.94 ▼13.78 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.89 ▲5.74 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=little_social | 3.33 | 49.55 |
Add New /wp-admin/post-new.php?post_type=little_social | 3.45 | 57.52 |
All Social Posts /wp-admin/edit.php?post_type=little_social | 3.37 | 39.75 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by LITTLE Social
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲191 | 13.99 ▼0.67 | 8.77 ▲6.92 | 42.59 ▲1.38 |
Dashboard /wp-admin | 2,272 ▲69 | 4.88 ▲0.02 | 112.82 ▲8.95 | 42.53 ▲0.16 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.04 ▲0.05 | 35.57 ▼4.44 | 31.61 ▼6.10 |
Add New Post /wp-admin/post-new.php | 1,573 ▲42 | 23.34 ▲0.32 | 684.15 ▲32.92 | 61.96 ▲13.48 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.22 ▼0.17 | 103.94 ▲2.66 | 44.30 ▼3.26 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=little_social | 1,370 | 2.29 | 33.13 | 32.21 |
Add New /wp-admin/post-new.php?post_type=little_social | 2,275 | 7.73 | 178.30 | 70.21 |
All Social Posts /wp-admin/edit.php?post_type=little_social | 1,132 | 1.95 | 34.86 | 32.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/little-social/public/partials/plugin-name-public-display.php
- > /wp-content/plugins/little-social/admin/partials/little-social-media-admin-display.php
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/little-social/social/SocialRepository.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/little-social/social/models/Linkedin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/little-social/social/models/FBPost.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/little-social/social/LinkedinConnector.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/little-social/includes/little-social-media-activator.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/little-social/social/models/Tweet.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/little-social/social/InstagramConnector.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/little-social/social/TwitterConnector.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/little-social/social/FacebookConnector.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/little-social/includes/little-social-media-deactivator.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== little-social ===
) - Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in little-social/assets to your readme.txt
little-social/little-social-media.php 92% from 13 tests
"LITTLE Social" version 1.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("little-social.php" instead of "little-social-media.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,017 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 780 | 642 | 1,953 |
JavaScript | 2 | 26 | 31 | 64 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 197 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 189 | 95.94% |
▷ Protected methods | 3 | 1.52% |
▷ Private methods | 5 | 2.54% |
Functions | 13 | |
▷ Named functions | 13 | 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
There are no PNG files in this plugin