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
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼0.36ms] Passed 4 tests
This is a short check of server-side resources used by Firmafy
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 40.98 ▼0.37 |
Dashboard /wp-admin | 3.48 ▲0.18 | 50.44 ▲1.93 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 49.54 ▲4.00 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 89.89 ▼5.05 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 33.52 ▲2.06 |
Settings /wp-admin/admin.php?page=settings_firmafy | 3.37 | 32.24 |
Templates /wp-admin/edit.php?post_type=firmafy_template | 3.50 | 42.00 |
Server storage [IO: ▲4.01MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 272 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Firmafy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲89 | 14.23 ▼0.12 | 1.72 ▲0.02 | 40.41 ▼4.63 |
Dashboard /wp-admin | 2,244 ▲64 | 5.64 ▼0.01 | 96.92 ▼1.63 | 44.16 ▼2.03 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 1.98 ▲0.03 | 41.18 ▲3.87 | 35.57 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.78 ▲0.40 | 601.88 ▼28.17 | 57.96 ▲3.34 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.21 ▲0.01 | 100.66 ▲1.61 | 40.86 ▼1.83 |
Settings /wp-admin/admin.php?page=settings_firmafy | 970 | 2.01 | 27.96 | 29.04 |
Templates /wp-admin/edit.php?post_type=firmafy_template | 1,730 | 1.97 | 38.17 | 30.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 30× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/res/svg_tree.php
- > /wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/res/measure.php
- > /wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/res/example13.php
- > /wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/res/balloon.php
- > /wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/res/example05.php
- > /wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/res/forms.php
- > /wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/res/bookmark.php
- > /wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/res/example09.png.php
- > /wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/res/example01.php
- > /wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/res/example11.php
- 135× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/firmafy/vendor/spipu/html2pdf/src/Tests/Parsing/TextParserTest.php:20
- > PHP Warning
require_once(wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/groups.php on line 12
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/example08.php on line 12
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/example04.php on line 12
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/ticket.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Tests\\AbstractTest' not found in wp-content/plugins/firmafy/vendor/spipu/html2pdf/src/Tests/Tag/Svg/PathInvalidTest.php:20
- > PHP Warning
require_once(wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/firmafy/vendor/spipu/html2pdf/examples/measure.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Tests\\AbstractTest' not found in wp-content/plugins/firmafy/vendor/spipu/html2pdf/src/Tests/Output/FileNameOkTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Tag\\AbstractHtmlTag' not found in wp-content/plugins/firmafy/vendor/spipu/html2pdf/src/Tag/Html/Sup.php:19
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Tests\\AbstractTest' not found in wp-content/plugins/firmafy/vendor/spipu/html2pdf/src/Tests/Image/BackgroundOkTest.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in firmafy/assets to your readme.txt
firmafy/firmafy.php 92% from 13 tests
The main file in "Firmafy" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .ps1 - Windows PowerShell Cmdlet in Windows
- ☣ wp-content/plugins/firmafy/vendor/spipu/html2pdf/test/generate.ps1
- .ps1 - Windows PowerShell Cmdlet in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 198 | 4,101 | 17,451 | 60,838 |
Markdown | 18 | 500 | 0 | 1,358 |
JSON | 4 | 0 | 0 | 226 |
SVG | 2 | 0 | 0 | 33 |
CSS | 2 | 1 | 0 | 28 |
XML | 1 | 0 | 4 | 22 |
HTML | 2 | 12 | 28 | 14 |
PowerShell | 1 | 6 | 6 | 14 |
YAML | 1 | 2 | 0 | 13 |
Bourne Shell | 1 | 4 | 0 | 12 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 4,413)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 73.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,413.00 |
Average method complexity | 7.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 109 | |
▷ Abstract classes | 5 | 4.59% |
▷ Concrete classes | 104 | 95.41% |
▷ Final classes | 0 | 0.00% |
Methods | 1,290 | |
▷ Static methods | 129 | 10.00% |
▷ Public methods | 827 | 64.11% |
▷ Protected methods | 454 | 35.19% |
▷ Private methods | 9 | 0.70% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 154 | |
▷ Global constants | 145 | 94.16% |
▷ Class constants | 9 | 5.84% |
▷ Public constants | 9 | 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
6 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/spipu/html2pdf/src/Tests/Image/res/logo.png | 20.53KB | 7.63KB | ▼ 62.85% |
vendor/spipu/html2pdf/examples/res/check.png | 0.44KB | 0.39KB | ▼ 11.16% |
vendor/spipu/html2pdf/examples/res/bas_page.png | 12.68KB | 5.76KB | ▼ 54.58% |
vendor/spipu/html2pdf/examples/res/off.png | 0.88KB | 0.83KB | ▼ 5.79% |
vendor/spipu/html2pdf/examples/res/measure.png | 0.35KB | 0.15KB | ▼ 56.75% |