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.00MB] [CPU: ▼299.77ms] Passed 4 tests
Server-side resources used by Socialphotos
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 53.10 ▲1.33 |
Dashboard /wp-admin | 3.43 ▲0.02 | 33.72 ▲1.30 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 36.88 ▲0.56 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 94.14 ▼1,198.60 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 22.99 ▼2.34 |
Server storage [IO: ▲4.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_wpb_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Socialphotos
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲51 | 15.92 ▼0.07 | 5.85 ▼0.38 | 2.46 ▼0.23 |
Dashboard /wp-admin | 2,895 ▲41 | 6.10 ▼0.10 | 115.93 ▼20.03 | 151.66 ▼5.10 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.25 ▲0.01 | 63.45 ▼4.50 | 139.96 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,661 ▲1 | 16.54 ▼0.29 | 407.76 ▼3.48 | 155.43 ▲0.38 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.52 ▼0.00 | 135.85 ▼8.46 | 183.49 ▼2.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_wpb_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/socialphotos/socialphotos-plugin.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI found ("")
- Requires at least: Invalid version format
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== socialphotos ===
)
socialphotos/socialphotos-plugin.php 85% from 13 tests
This is the main PHP file of "Socialphotos" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("socialphotos.php" instead of "socialphotos-plugin.php")
- Version: Plugin version missing
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected60 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 19 | 60 |
PHP code Passed 2 tests
An overview 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.21 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 2.17MB with 1.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 743.09KB | 192.53KB | ▼ 74.09% |
assets/screenshot-2.png | 421.90KB | 107.51KB | ▼ 74.52% |
assets/icon-128x128.png | 17.62KB | 7.06KB | ▼ 59.92% |
assets/banner-772x250.png | 36.59KB | 12.17KB | ▼ 66.73% |
assets/icon-256x256.png | 50.80KB | 19.03KB | ▼ 62.55% |