Benchmarks
Plugin footprint 83% from 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.66MB] [CPU: ▲2.38ms] Passed 4 tests
This is a short check of server-side resources used by WP GitHub Card
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.65 | 45.49 ▲6.61 |
Dashboard /wp-admin | 4.01 ▲0.70 | 48.94 ▼5.28 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 51.50 ▲3.40 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.64 | 88.56 ▲4.78 |
Media Library /wp-admin/upload.php | 3.87 ▲0.64 | 42.82 ▲10.46 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 221 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP GitHub Card
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.45 ▲0.21 | 1.56 ▼0.10 | 43.53 ▲5.03 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▲0.97 | 97.82 ▼24.78 | 37.47 ▼7.08 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.04 | 34.48 ▼10.23 | 34.53 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,532 ▲8 | 23.37 ▼0.10 | 679.34 ▲4.63 | 64.02 ▲5.30 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.20 ▲0.02 | 96.91 ▼1.28 | 42.45 ▲0.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 fix the following items
- 143× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/wp-github-card/vendor/twig/twig/src/Extension/CoreExtension.php:75
- > PHP Fatal error
Uncaught Error: Interface 'Twig\odeVisitor\odeVisitorInterface' not found in wp-content/plugins/wp-github-card/vendor/twig/twig/src/NodeVisitor/AbstractNodeVisitor.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/wp-github-card/vendor/twig/twig/src/Extension/ProfilerExtension.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/wp-github-card/vendor/twig/twig/src/Extension/SandboxExtension.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/wp-github-card/vendor/twig/twig/src/Node/Expression/Unary/AbstractUnary.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Twig\odeVisitor\odeVisitorInterface' not found in wp-content/plugins/wp-github-card/vendor/twig/twig/src/NodeVisitor/OptimizerNodeVisitor.php:40
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/wp-github-card/vendor/twig/twig/src/Profiler/Node/EnterProfileNode.php:22
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/wp-github-card/vendor/symfony/polyfill-mbstring/bootstrap80.php on line 15
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\Extension\\ExtensionInterface' not found in wp-content/plugins/wp-github-card/vendor/twig/twig/src/Extension/AbstractExtension.php:14
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/wp-github-card/vendor/twig/twig/src/Node/Expression/Binary/GreaterEqualBinary.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Requires php: Version format is invalid
- Screenshots: These screenshots do not have images: #1 (GitHub profile card screenshot), #2 (usage)
- Donate link: Please fix this invalid url: ""
wp-github-card/wp-github-card.php Passed 13 tests
The main PHP file in "WP GitHub Card" ver. 2.3.1 adds more information about the plugin and also serves as the entry point for this plugin
33 characters long description:
GitHub simple profile card plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin15,608 lines of code in 211 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 202 | 2,820 | 4,575 | 15,080 |
JSON | 4 | 0 | 0 | 388 |
CSS | 1 | 1 | 0 | 91 |
HTML | 1 | 0 | 0 | 22 |
Markdown | 2 | 8 | 0 | 17 |
reStructuredText | 1 | 8 | 5 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 8.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 11 | |
Traits | 0 | |
Classes | 176 | |
▷ Abstract classes | 11 | 6.25% |
▷ Concrete classes | 165 | 93.75% |
▷ Final classes | 62 | 37.58% |
Methods | 891 | |
▷ Static methods | 76 | 8.53% |
▷ Public methods | 769 | 86.31% |
▷ Protected methods | 48 | 5.39% |
▷ Private methods | 74 | 8.31% |
Functions | 173 | |
▷ Named functions | 154 | 89.02% |
▷ Anonymous functions | 19 | 10.98% |
Constants | 59 | |
▷ Global constants | 6 | 10.17% |
▷ Class constants | 53 | 89.83% |
▷ Public constants | 49 | 92.45% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 8.87KB | 3.46KB | ▼ 60.98% |
screenshot-1.png | 7.12KB | 5.12KB | ▼ 28.15% |