Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▲1.45ms] Passed 4 tests
Analyzing server-side resources used by Calder SVG
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 39.12 ▼0.04 |
Dashboard /wp-admin | 3.77 ▲0.46 | 50.47 ▲6.91 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 49.18 ▲4.13 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 93.95 ▼4.55 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 41.08 ▲6.26 |
Server storage [IO: ▲3.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Calder SVG
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲179 | 13.71 ▼0.67 | 6.97 ▲5.11 | 37.31 ▼37.49 |
Dashboard /wp-admin | 2,206 ▲18 | 5.88 ▲1.02 | 106.38 ▲3.53 | 42.27 ▼0.07 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.02 | 39.59 ▲2.32 | 35.77 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.23 ▼0.27 | 629.28 ▼1.25 | 58.85 ▲10.30 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▲0.04 | 98.56 ▼2.78 | 42.06 ▼4.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 57× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'LoggerPatternConverter' not found in wp-content/plugins/calder-svg/libs/log4php/2.3.0/pattern/LoggerPatternConverterSuperglobal.php:39
- > PHP Fatal error
Uncaught Error: Class 'LoggerPatternConverter' not found in wp-content/plugins/calder-svg/libs/log4php/2.3.0/pattern/LoggerPatternConverterNDC.php:29
- > PHP Fatal error
Uncaught Error: Class 'LoggerFilter' not found in wp-content/plugins/calder-svg/libs/log4php/2.3.0/filters/LoggerFilterLevelMatch.php:48
- > PHP Fatal error
Uncaught Error: Class 'LoggerLayout' not found in wp-content/plugins/calder-svg/libs/log4php/2.3.0/layouts/LoggerLayoutPattern.php:33
- > PHP Fatal error
Uncaught Error: Class 'LoggerFilter' not found in wp-content/plugins/calder-svg/libs/log4php/2.3.0/filters/LoggerFilterLevelRange.php:65
- > PHP Fatal error
Uncaught Error: Class 'LoggerPatternConverter' not found in wp-content/plugins/calder-svg/libs/log4php/2.3.0/pattern/LoggerPatternConverterLogger.php:32
- > PHP Fatal error
Uncaught Error: Class 'LoggerPatternConverter' not found in wp-content/plugins/calder-svg/libs/log4php/2.3.0/pattern/LoggerPatternConverterLevel.php:29
- > PHP Fatal error
Uncaught Error: Class 'LoggerPatternConverter' not found in wp-content/plugins/calder-svg/libs/log4php/2.3.0/pattern/LoggerPatternConverterLocation.php:30
- > PHP Fatal error
Uncaught Error: Class 'LoggerPatternConverterSuperglobal' not found in wp-content/plugins/calder-svg/libs/log4php/2.3.0/pattern/LoggerPatternConverterSession.php:33
- > PHP Fatal error
Uncaught Error: Class 'LoggerPatternConverter' not found in wp-content/plugins/calder-svg/libs/log4php/2.3.0/pattern/LoggerPatternConverterSessionID.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: calder, art, svg, animation
calder-svg/caldersvg.php 92% from 13 tests
The entry point to "Calder SVG" version 2.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("calder-svg.php" instead of "caldersvg.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,231 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 1,140 | 5,349 | 3,799 |
JavaScript | 8 | 40 | 72 | 205 |
SVG | 5 | 0 | 0 | 145 |
DTD | 1 | 25 | 54 | 69 |
XML | 1 | 0 | 12 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 6 | 7.79% |
▷ Concrete classes | 71 | 92.21% |
▷ Final classes | 0 | 0.00% |
Methods | 461 | |
▷ Static methods | 56 | 12.15% |
▷ Public methods | 388 | 84.16% |
▷ Protected methods | 23 | 4.99% |
▷ Private methods | 50 | 10.85% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 46 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 46 | 100.00% |
▷ Public constants | 46 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin