Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method SimplePhotonPhotosInit::spp_activation() should not be called statically
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.91ms] Passed 4 tests
Server-side resources used by Simple Photon Photos
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.50 ▼5.16 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.62 ▼8.24 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.61 ▼1.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.61 ▼0.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.59 ▼0.00 |
Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Simple Photon Photos: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.13 | 1.67 ▼0.04 | 44.06 ▲1.87 |
Dashboard /wp-admin | 2,189 ▲12 | 5.51 ▼0.15 | 91.56 ▼2.63 | 37.91 ▼12.10 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▼0.01 | 35.29 ▼6.98 | 33.67 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.20 ▼0.25 | 663.43 ▲14.88 | 53.21 ▼3.83 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.03 | 95.53 ▼8.32 | 42.44 ▲0.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-photon-photos/SimplePhotonPhotos.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-photon-photos/includes/simple-photon-photos-init.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% 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
These attributes need your attention:
- Donate link: Invalid url: ""
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
simple-photon-photos/SimplePhotonPhotos.php 85% from 13 tests
This is the main PHP file of "Simple Photon Photos" version 0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 220 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-photon-photos.php" instead of "SimplePhotonPhotos.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,044 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 48 | 32 | 540 |
PHP | 2 | 75 | 127 | 311 |
CSS | 2 | 47 | 18 | 193 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.95 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 9.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/intro.png | 103.92KB | 37.49KB | ▼ 63.92% |