Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.65ms] Passed 4 tests
A check of server-side resources used by Simple Photo Sphere
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.36 ▼1.28 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.77 ▼2.68 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.44 ▼0.12 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.48 ▼18.50 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.55 ▲2.85 |
Simple Photo Sphere /wp-admin/options-general.php?page=simple_photo_sphere | 3.27 | 30.89 |
Server storage [IO: ▲2.79MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
simple_photo_sphere_settings |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Photo Sphere
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 15.09 ▲0.86 | 13.61 ▲12.03 | 38.65 ▼2.57 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼1.04 | 107.53 ▲6.14 | 37.83 ▼1.51 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.05 | 40.79 ▼1.03 | 34.89 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.20 ▼4.82 | 605.96 ▼29.55 | 56.26 ▲3.14 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.22 ▼0.02 | 99.37 ▲1.85 | 42.65 ▼1.13 |
Simple Photo Sphere /wp-admin/options-general.php?page=simple_photo_sphere | 1,051 | 2.06 | 23.98 | 32.84 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- simple_photo_sphere_settings
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 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 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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-photo-sphere/admin-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-photo-sphere/sps-img.php:102
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-photo-sphere/simple-photo-sphere.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Contributors: The plugin contributors field is not present
- Contributors: No tags were detected
simple-photo-sphere/simple-photo-sphere.php Passed 13 tests
This is the main PHP file of "Simple Photo Sphere" version 0.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
Insert your post or page a photo sphere image.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,267 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 0 | 6 | 958 |
PHP | 3 | 13 | 21 | 307 |
CSS | 1 | 0 | 6 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 24 | |
▷ Named functions | 24 | 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
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 |
sample.png | 1.70KB | 0.99KB | ▼ 42.02% |