Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.25ms] Passed 4 tests
An overview of server-side resources used by Social Pixel
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.60 ▼5.31 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.31 ▼2.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.76 ▼6.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.36 ▼12.27 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.94 ▼5.08 |
Social Pixel /wp-admin/options-general.php?page=social-pixel | 3.20 | 26.04 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
soc_pix_options |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Social Pixel
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.35 ▼1.03 | 1.59 ▼0.12 | 37.71 ▼4.61 |
Dashboard /wp-admin | 2,210 ▲22 | 5.91 ▲0.11 | 113.02 ▲12.45 | 44.65 ▼0.93 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.00 | 33.80 ▼5.76 | 31.36 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.06 ▼0.00 | 637.82 ▼38.98 | 52.02 ▼2.00 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.20 ▲0.02 | 96.22 ▼13.68 | 42.29 ▼7.63 |
Social Pixel /wp-admin/options-general.php?page=social-pixel | 1,262 | 1.72 | 26.10 | 33.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (28 tag instead of maximum 10)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== social-pixel ===
)
social-pixel/sp-conf.php 85% from 13 tests
"Social Pixel" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 275 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-pixel.php" instead of "sp-conf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,863 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 38 | 47 | 1,863 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
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 | 34 | |
▷ Named functions | 31 | 91.18% |
▷ Anonymous functions | 3 | 8.82% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin