Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.75MB] [CPU: ▼61.21ms] Passed 4 tests
Analyzing server-side resources used by Post Builder Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.25 ▼1.21 | 6.04 ▼38.40 |
Dashboard /wp-admin | 2.27 ▼1.07 | 9.68 ▼63.93 |
Posts /wp-admin/edit.php | 2.27 ▼1.08 | 8.07 ▼45.89 |
Add New Post /wp-admin/post-new.php | 2.27 ▼3.62 | 6.70 ▼96.62 |
Media Library /wp-admin/upload.php | 2.27 ▼0.96 | 7.27 ▼30.77 |
Server storage [IO: ▲12.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2,263 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Post Builder Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,024 ▲238 | 17.31 ▲2.95 | 15.06 ▲13.20 | 43.39 ▲2.55 |
Dashboard /wp-admin | 2,224 ▲47 | 6.39 ▲0.73 | 98.62 ▲6.35 | 37.34 ▼6.39 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 3.12 ▲1.10 | 44.38 ▲4.81 | 36.05 ▼1.54 |
Add New Post /wp-admin/post-new.php | 1,636 ▲108 | 23.50 ▲0.34 | 679.22 ▲47.93 | 42.83 ▼8.72 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.94 ▲0.69 | 111.48 ▲3.45 | 43.35 ▼4.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the pbf-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/post-builder-lite/vendor/squizlabs/php_codesniffer/scripts/build-phar.php
- 1130× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Application' not found in wp-content/plugins/post-builder-lite/vendor/symfony/console/Tests/Fixtures/DescriptorApplication1.php:16
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\EventDispatcher\\EventDispatcher' not found in wp-content/plugins/post-builder-lite/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php:27
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer_Exception' not found in wp-content/plugins/post-builder-lite/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/AbstractPatternSniff.php:18
- > PHP Fatal error
Uncaught Error: Class 'Prophecy\\Exception\\Prophecy\\ObjectProphecyException' not found in wp-content/plugins/post-builder-lite/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/MethodProphecyException.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Semver\\Constraint\\ConstraintInterface' not found in wp-content/plugins/post-builder-lite/vendor/composer/semver/src/Constraint/Constraint.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/post-builder-lite/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php:19
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\DocBlock\\Tags\\BaseTag' not found in wp-content/plugins/post-builder-lite/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyRead.php:25
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer_Report' not found in wp-content/plugins/post-builder-lite/vendor/squizlabs/php_codesniffer/CodeSniffer/Reports/Info.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/post-builder-lite/vendor/symfony/console/Tests/Helper/TableTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\AbstractFixer' not found in wp-content/plugins/post-builder-lite/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoSuperfluousPhpdocTagsFixer.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: design elements, post builder, amazon, affiliate
post-builder-lite/post-builder.php 92% from 13 tests
The entry point to "Post Builder Lite" version 1.0.0 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: Name the main plugin file the same as the plugin slug ("post-builder-lite.php" instead of "post-builder.php")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
These items require your attention
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/post-builder-lite/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .bat - Batch File in Windows
- ☣ wp-content/plugins/post-builder-lite/vendor/squizlabs/php_codesniffer/scripts/phpcbf.bat
- ☣ wp-content/plugins/post-builder-lite/vendor/squizlabs/php_codesniffer/scripts/phpcs.bat
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,597 | 35,352 | 79,695 | 147,730 |
JavaScript | 59 | 318 | 460 | 38,111 |
Markdown | 90 | 2,773 | 0 | 9,879 |
JSON | 67 | 7 | 0 | 5,228 |
XML | 159 | 171 | 125 | 4,685 |
YAML | 40 | 170 | 89 | 3,461 |
TypeScript | 1 | 0 | 0 | 3,036 |
reStructuredText | 5 | 887 | 437 | 1,301 |
CSS | 14 | 22 | 83 | 886 |
C | 1 | 52 | 8 | 223 |
XSD | 3 | 29 | 31 | 202 |
Ant | 6 | 22 | 0 | 147 |
m4 | 1 | 11 | 11 | 41 |
C/C++ Header | 1 | 12 | 8 | 40 |
Bourne Shell | 2 | 1 | 0 | 21 |
DOS Batch | 2 | 2 | 22 | 16 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 270)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 542.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 270.00 |
Code structure | ||
---|---|---|
Namespaces | 202 | |
Interfaces | 122 | |
Traits | 13 | |
Classes | 1,430 | |
▷ Abstract classes | 46 | 3.22% |
▷ Concrete classes | 1,384 | 96.78% |
▷ Final classes | 445 | 32.15% |
Methods | 9,882 | |
▷ Static methods | 937 | 9.48% |
▷ Public methods | 7,962 | 80.57% |
▷ Protected methods | 734 | 7.43% |
▷ Private methods | 1,186 | 12.00% |
Functions | 730 | |
▷ Named functions | 162 | 22.19% |
▷ Anonymous functions | 568 | 77.81% |
Constants | 755 | |
▷ Global constants | 110 | 14.57% |
▷ Class constants | 645 | 85.43% |
▷ Public constants | 645 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
imgs/logo.png | 10.57KB | 4.56KB | ▼ 56.87% |
imgs/ama.png | 12.69KB | 8.32KB | ▼ 34.43% |