84% calder-svg

Code Review | Calder SVG

WordPress plugin Calder SVG scored 84% from 54 tests.

About plugin

  • Plugin page: calder-svg
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Mar 21, 2017
  • Number of updates: 31
  • Update frequency: every 7.9 days
  • Top authors: munger41 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,111 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4739.12 ▼0.04
Dashboard /wp-admin3.77 ▲0.4650.47 ▲6.91
Posts /wp-admin/edit.php3.88 ▲0.5249.18 ▲4.13
Add New Post /wp-admin/post-new.php6.35 ▲0.4693.95 ▼4.55
Media Library /wp-admin/upload.php3.69 ▲0.4641.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲17913.71 ▼0.676.97 ▲5.1137.31 ▼37.49
Dashboard /wp-admin2,206 ▲185.88 ▲1.02106.38 ▲3.5342.27 ▼0.07
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0239.59 ▲2.3235.77 ▲0.58
Add New Post /wp-admin/post-new.php1,542 ▼018.23 ▼0.27629.28 ▼1.2558.85 ▲10.30
Media Library /wp-admin/upload.php1,391 ▼04.20 ▲0.0498.56 ▼2.7842.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP801,1405,3493,799
JavaScript84072205
SVG500145
DTD1255469
XML101213

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 code0.32
Average class complexity7.30
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes77
▷ Abstract classes67.79%
▷ Concrete classes7192.21%
▷ Final classes00.00%
Methods461
▷ Static methods5612.15%
▷ Public methods38884.16%
▷ Protected methods234.99%
▷ Private methods5010.85%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants46
▷ Global constants00.00%
▷ Class constants46100.00%
▷ Public constants46100.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