Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▼305.40ms] 75% from 4 tests
An overview of server-side resources used by FloPicTime - Pic-Time & WordPress integration
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 2,553.14ms on /wp-admin/post-new.php?post_type=flo_pictime_gallery)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.29 | 70.33 ▲3.23 |
Dashboard /wp-admin | 3.65 ▲0.24 | 44.79 ▲4.90 |
Posts /wp-admin/edit.php | 3.87 ▲0.23 | 49.23 ▲0.68 |
Add New Post /wp-admin/post-new.php | 7.23 ▲0.26 | 133.44 ▼1,230.39 |
Media Library /wp-admin/upload.php | 3.60 ▲0.31 | 44.22 ▲10.43 |
All FloPicTime Galleries /wp-admin/edit.php?post_type=flo_pictime_gallery | 3.67 | 2,675.48 |
Add New FloPicTime Gallery /wp-admin/post-new.php?post_type=flo_pictime_gallery | 3.82 | 2,553.14 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for FloPicTime - Pic-Time & WordPress integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,875 ▲117 | 15.83 ▲0.28 | 8.73 ▼2.90 | 3.44 ▼0.39 |
Dashboard /wp-admin | 2,964 ▲85 | 6.41 ▲0.05 | 187.70 ▼34.73 | 198.33 ▼20.54 |
Posts /wp-admin/edit.php | 2,740 ▲68 | 3.43 ▼0.00 | 87.10 ▼15.87 | 177.43 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,769 ▲129 | 14.26 ▼6.61 | 503.72 ▼232.00 | 194.08 ▼12.80 |
Media Library /wp-admin/upload.php | 1,744 ▲47 | 5.71 ▼0.01 | 200.20 ▲2.13 | 250.64 ▼18.29 |
All FloPicTime Galleries /wp-admin/edit.php?post_type=flo_pictime_gallery | 1,438 | 4.57 | 122.66 | 140.18 |
Add New FloPicTime Gallery /wp-admin/post-new.php?post_type=flo_pictime_gallery | 2,036 | 6.25 | 205.98 | 198.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/flopictime/public/partials/pictimewp-public-display.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/flopictime/admin/class-pictime-meta-box.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/flopictime/admin/partials/pictimewp-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: image proofing, pic-time
flopictime/pictimewp.php 85% from 13 tests
"FloPicTime - Pic-Time & WordPress integration" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flopictime.php" instead of "pictimewp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected8,098 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 598 | 180 | 6,839 |
PHP | 15 | 436 | 712 | 1,093 |
CSS | 3 | 3 | 2 | 124 |
SVG | 1 | 0 | 0 | 41 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 10 | 17.86% |
▷ Public methods | 51 | 91.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.93% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
2 compressed PNG files occupy 0.11MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/project_cover.png | 0.93KB | 0.88KB | ▼ 5.57% |
admin/img/pt.png | 108.80KB | 115.45KB | 0.00% |