Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Parse error in wp-content/plugins/seedsugar-phphamlsass-4-wp/phphaml4wp.php+242
syntax error, unexpected 'yield' (T_YIELD), expecting '('
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.85ms] Passed 4 tests
Analyzing server-side resources used by seedsugar-phphamlsass for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.21 ▲3.39 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.83 ▼10.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.38 ▲3.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.15 ▼14.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.39 ▼1.62 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 255 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for seedsugar-phphamlsass for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▼0.02 | 1.70 ▲0.06 | 44.46 ▲7.04 |
Dashboard /wp-admin | 2,192 ▲14 | 5.54 ▼0.12 | 98.13 ▼21.97 | 40.52 ▼5.32 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.11 ▲0.12 | 34.46 ▼1.77 | 35.95 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.11 ▲4.59 | 600.19 ▼87.32 | 51.76 ▼18.01 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▼0.00 | 93.21 ▼8.41 | 40.38 ▼1.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SassRenderer' not found in wp-content/plugins/seedsugar-phphamlsass-4-wp/includes/sass/renderers/SassCompressedRenderer.php:19
- > PHP Fatal error
Uncaught Error: Class 'SassNode' not found in wp-content/plugins/seedsugar-phphamlsass-4-wp/includes/sass/tree/SassExtendNode.php:18
- > PHP Fatal error
Uncaught Error: Class 'SassNode' not found in wp-content/plugins/seedsugar-phphamlsass-4-wp/includes/sass/tree/SassIfNode.php:19
- > PHP Fatal error
Uncaught Error: Class 'SassNode' not found in wp-content/plugins/seedsugar-phphamlsass-4-wp/includes/sass/tree/SassMixinDefinitionNode.php:18
- > PHP Fatal error
Uncaught Error: Class 'SassNode' not found in wp-content/plugins/seedsugar-phphamlsass-4-wp/includes/sass/tree/SassVariableNode.php:18
- > PHP Fatal error
Uncaught Error: Class 'SassNode' not found in wp-content/plugins/seedsugar-phphamlsass-4-wp/includes/sass/tree/SassDirectiveNode.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/seedsugar-phphamlsass-4-wp/ph4wp_admin.php:33
- > PHP Fatal error
Uncaught Error: Class 'SassNode' not found in wp-content/plugins/seedsugar-phphamlsass-4-wp/includes/sass/tree/SassWhileNode.php:18
- > PHP Fatal error
Uncaught Error: Class 'SassLiteral' not found in wp-content/plugins/seedsugar-phphamlsass-4-wp/includes/sass/extensions/compass/functions/colourStops.php:17
- > PHP Parse error
syntax error, unexpected 'yield' (T_YIELD), expecting '(' in wp-content/plugins/seedsugar-phphamlsass-4-wp/phphaml4wp.php on line 242
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: phphaml, sass, theme, themes, phamlp...
seedsugar-phphamlsass-4-wp/phphaml4wp.php 85% from 13 tests
"seedsugar-phphamlsass for WordPress" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("seedsugar-phphamlsass-4-wp.php" instead of "phphaml4wp.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
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
Success! There were no dangerous files found in this plugin8,150 lines of code in 183 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 1,125 | 5,154 | 5,871 |
Sass | 94 | 368 | 1,017 | 2,022 |
Ruby | 9 | 56 | 1 | 129 |
Haml | 5 | 27 | 2 | 87 |
Markdown | 1 | 7 | 0 | 25 |
XML | 1 | 0 | 0 | 14 |
CSS | 2 | 4 | 20 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 5 | 5.95% |
▷ Concrete classes | 79 | 94.05% |
▷ Final classes | 0 | 0.00% |
Methods | 507 | |
▷ Static methods | 100 | 19.72% |
▷ Public methods | 415 | 81.85% |
▷ Protected methods | 42 | 8.28% |
▷ Private methods | 50 | 9.86% |
Functions | 47 | |
▷ Named functions | 44 | 93.62% |
▷ Anonymous functions | 3 | 6.38% |
Constants | 159 | |
▷ Global constants | 10 | 6.29% |
▷ Class constants | 149 | 93.71% |
▷ Public constants | 149 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/pdf.png | 0.58KB | 0.57KB | ▼ 1.02% |
includes/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/visited.png | 45.89KB | 0.13KB | ▼ 99.72% |
includes/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/feed.png | 0.67KB | 0.90KB | 0.00% |
includes/sass/extensions/compass/frameworks/blueprint/templates/link_icons/link_icons/external.png | 45.75KB | 0.11KB | ▼ 99.77% |
includes/sass/extensions/compass/frameworks/blueprint/templates/buttons/buttons/cross.png | 0.64KB | 0.72KB | 0.00% |