Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/canvaspop-photo-printing-api/canvaspop-photo-printing-api.php+364
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.83ms] Passed 4 tests
A check of server-side resources used by CanvasPop Photo Printing API
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.03 | 26.65 ▼14.08 |
Dashboard /wp-admin | 3.36 ▲0.02 | 45.35 ▼13.38 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 45.22 ▼0.71 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 79.16 ▼15.16 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 46.72 ▲12.17 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
cp_options |
Browser metrics Passed 4 tests
CanvasPop Photo Printing API: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲214 | 13.62 ▼0.69 | 8.68 ▲7.03 | 44.12 ▲3.13 |
Dashboard /wp-admin | 2,218 ▲32 | 5.99 ▲0.08 | 98.39 ▼8.61 | 82.89 ▲39.70 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.02 ▼0.02 | 35.59 ▼1.00 | 32.98 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,681 ▲139 | 21.93 ▲3.67 | 724.19 ▲98.36 | 52.55 ▼0.08 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.18 ▼0.06 | 99.12 ▼0.94 | 76.10 ▲36.15 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- cp_options
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/canvaspop-photo-printing-api/views/public.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/canvaspop-photo-printing-api/views/admin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/canvaspop-photo-printing-api/canvaspop-photo-printing-api.php:69
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Screenshots: Screenshot #1 (`/screenshot-1.png`) image required
canvaspop-photo-printing-api/canvaspop-photo-printing-api.php Passed 13 tests
Analyzing the main PHP file in "CanvasPop Photo Printing API" version 1.0.1
28 characters long description:
CanvasPop Photo Printing API
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
Success! There were no dangerous files found in this plugin1,130 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 10 | 10 | 523 |
PHP | 6 | 73 | 223 | 258 |
CSS | 3 | 10 | 2 | 251 |
Markdown | 1 | 80 | 0 | 98 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 16 | |
▷ Static methods | 6 | 37.50% |
▷ Public methods | 12 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 25.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
27 compressed PNG files occupy 0.21MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/custom_background.png | 1.87KB | 2.12KB | 0.00% |
assets/custom_rgb_b.png | 0.98KB | 0.74KB | ▼ 25.00% |
assets/custom_submit.png | 0.97KB | 0.99KB | 0.00% |
assets/colorpicker_background.png | 1.85KB | 2.14KB | 0.00% |
assets/select2.png | 0.51KB | 0.33KB | ▼ 34.94% |