Benchmarks
Plugin footprint 65% 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.80MB] [CPU: ▼34.22ms] Passed 4 tests
A check of server-side resources used by Social Footprint
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 39.73 ▼1.85 |
Dashboard /wp-admin | 3.14 ▼0.17 | 28.17 ▼22.11 |
Posts /wp-admin/edit.php | 3.14 ▼0.22 | 24.27 ▼25.52 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.75 | 24.22 ▼78.61 |
Media Library /wp-admin/upload.php | 3.14 ▼0.09 | 25.18 ▼10.63 |
About /wp-admin/admin.php?page=authorship-social-counter-help | 3.14 | 27.01 |
Settings /wp-admin/admin.php?page=authorship-social-counter-settings | 3.14 | 24.42 |
Social Footprint /wp-admin/admin.php?page=authorship-social-counter | 3.14 | 23.14 |
Server storage [IO: ▲4.24MB] [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: 20 new files
Database: no new tables, 8 new options
New WordPress options |
---|
authorship-social-counter-totals |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
authorship-social-counter-settings |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Social Footprint
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.60 ▼0.78 | 1.82 ▼0.39 | 43.68 ▲2.53 |
Dashboard /wp-admin | 2,224 ▲36 | 5.84 ▼0.02 | 102.13 ▼9.26 | 65.50 ▲22.46 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.10 ▲0.07 | 35.49 ▼0.20 | 32.98 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,692 ▲157 | 22.71 ▼0.53 | 717.27 ▲61.49 | 49.64 ▼4.84 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.14 ▼0.06 | 103.88 ▲0.72 | 72.95 ▲28.16 |
About /wp-admin/admin.php?page=authorship-social-counter-help | 870 | 2.02 | 23.73 | 30.46 |
Settings /wp-admin/admin.php?page=authorship-social-counter-settings | 879 | 2.02 | 28.44 | 26.95 |
Social Footprint /wp-admin/admin.php?page=authorship-social-counter | 1,153 | 1.78 | 27.47 | 38.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 27 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=authorship-social-counter
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 0% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/social-footprint/views/total_share.php
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/social-footprint/includes/wpUrlList.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/social-footprint/views/manage_urls_back.php:90
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-footprint/includes/wpUrlList.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/social-footprint/includes/wpUrlList.php on line 4
- > PHP Notice
Undefined variable: stats in wp-content/plugins/social-footprint/views/shortcode.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-footprint/includes/wpUrlList.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/social-footprint/views/help.php:5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/social-footprint/includes/wpUrlList.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/social-footprint/includes/wpUrlList.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/social-footprint/includes/wpUrlList.php on line 4
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Importing posts from WordPress into the Social Footprint dashboard.), #2 (Adding custom URLs and selecting which social networks to grab data from.)
social-footprint/authorship-social-counter.php 92% from 13 tests
The entry point to "Social Footprint" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-footprint.php" instead of "authorship-social-counter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,854 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 320 | 206 | 1,433 |
JavaScript | 3 | 92 | 56 | 381 |
CSS | 1 | 3 | 10 | 40 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 51.33 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 2 | 2.94% |
▷ Public methods | 49 | 72.06% |
▷ Protected methods | 13 | 19.12% |
▷ Private methods | 6 | 8.82% |
Functions | 2 | |
▷ Named functions | 2 | 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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/includes/mattLogo.png | 46.91KB | 14.74KB | ▼ 68.57% |
includes/rsz_1rsz_1mattlogo.png | 2.05KB | 1.36KB | ▼ 33.57% |
assets/icons-sprite.png | 43.07KB | 10.26KB | ▼ 76.17% |