Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.45MB] [CPU: ▼13.71ms] Passed 4 tests
Server-side resources used by Candifly
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 45.39 ▲4.49 |
Dashboard /wp-admin | 3.58 ▲0.28 | 52.96 ▲4.90 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 55.13 ▲0.71 |
Add New Post /wp-admin/post-new.php | 3.40 ▼2.49 | 39.24 ▼64.64 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 41.25 ▲4.59 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 205 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Candifly
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲103 | 14.41 ▼0.17 | 1.63 ▼0.43 | 44.94 ▲3.91 |
Dashboard /wp-admin | 2,259 ▲68 | 5.81 ▲0.89 | 97.57 ▼4.21 | 40.28 ▼6.18 |
Posts /wp-admin/edit.php | 2,138 ▲46 | 2.06 ▲0.06 | 39.45 ▼2.22 | 32.97 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.32 ▲0.31 | 670.49 ▲31.81 | 56.71 ▲2.06 |
Media Library /wp-admin/upload.php | 1,435 ▲56 | 4.22 ▼0.02 | 99.46 ▼2.20 | 43.76 ▼2.66 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 52× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/candifly/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/candifly/vendor/guzzlehttp/psr7/src/AppendStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/candifly/vendor/guzzlehttp/psr7/src/Request.php:15
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\MessageFormatterInterface' not found in wp-content/plugins/candifly/vendor/guzzlehttp/guzzle/src/MessageFormatter.php:38
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/candifly/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/candifly/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/candifly/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/candifly/vendor/guzzlehttp/guzzle/src/Pool.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/candifly/vendor/guzzlehttp/psr7/src/BufferStream.php:17
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/candifly/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
candifly/candifly.php Passed 13 tests
The main PHP script in "Candifly" version 1.0.6 is automatically included on every request by WordPress
55 characters long description:
Easily integrate your Candifly calendars into WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin17,097 lines of code in 177 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 138 | 2,300 | 6,399 | 11,266 |
Markdown | 17 | 1,344 | 0 | 3,935 |
JSON | 11 | 0 | 0 | 1,136 |
HTML | 4 | 32 | 0 | 370 |
JavaScript | 3 | 25 | 72 | 233 |
CSS | 1 | 8 | 0 | 132 |
SVG | 1 | 0 | 0 | 9 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 12.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 94 | |
▷ Abstract classes | 1 | 1.06% |
▷ Concrete classes | 93 | 98.94% |
▷ Final classes | 35 | 37.63% |
Methods | 812 | |
▷ Static methods | 167 | 20.57% |
▷ Public methods | 672 | 82.76% |
▷ Protected methods | 4 | 0.49% |
▷ Private methods | 136 | 16.75% |
Functions | 124 | |
▷ Named functions | 34 | 27.42% |
▷ Anonymous functions | 90 | 72.58% |
Constants | 74 | |
▷ Global constants | 8 | 10.81% |
▷ Class constants | 66 | 89.19% |
▷ Public constants | 52 | 78.79% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/skins/pillscitrine.png | 6.65KB | 3.21KB | ▼ 51.76% |
img/skins/tilesquartz.png | 3.34KB | 2.50KB | ▼ 25.38% |
img/skins/classicsalmon.png | 8.95KB | 4.33KB | ▼ 51.61% |
img/skins/pillscoralblue.png | 6.39KB | 3.55KB | ▼ 44.51% |
img/skins/pillsorangeandteal.png | 6.56KB | 3.54KB | ▼ 46.10% |