Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.32MB] [CPU: ▼17.46ms] Passed 4 tests
A check of server-side resources used by Amir Social Comments WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.03 | 32.46 ▼4.00 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.08 ▼4.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.16 ▼2.27 |
Add New Post /wp-admin/post-new.php | 4.60 ▼1.28 | 43.66 ▼58.85 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.19 ▲7.21 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options |
---|
asc_version |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
asc |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Amir Social Comments WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 14.47 ▼0.09 | 2.15 ▲0.53 | 42.32 ▲0.59 |
Dashboard /wp-admin | 2,221 ▲36 | 5.80 ▼0.03 | 98.19 ▼0.82 | 62.28 ▲16.53 |
Posts /wp-admin/edit.php | 2,107 ▲21 | 2.02 ▼0.02 | 37.88 ▼0.70 | 35.94 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,689 ▲170 | 24.33 ▲1.26 | 681.69 ▲87.92 | 53.63 ▼15.28 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.25 ▲0.03 | 99.91 ▲1.68 | 72.06 ▲28.28 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- can_compress_scripts
- asc
- widget_theysaidso_widget
- theysaidso_admin_options
- asc_version
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/amir-social-comments/languages/index.php
- > /wp-content/plugins/amir-social-comments/amir-social-comments.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (**Facebook Comments Front-End**: Facebook Comments Interface) image not found
amir-social-comments/amir-social-comments.php Passed 13 tests
"Amir Social Comments WordPress" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Allow your website visitors to post comment via their Facebook account
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin316 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 14 | 36 | 316 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 0.60KB | 0.43KB | ▼ 28.20% |