Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.38MB] [CPU: ▲3.21ms] Passed 4 tests
An overview of server-side resources used by WPify Mapy.cz
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.85 ▲1.39 | 46.83 ▲0.49 |
Dashboard /wp-admin | 4.69 ▲1.35 | 57.08 ▲1.03 |
Posts /wp-admin/edit.php | 4.75 ▲1.39 | 52.71 ▲9.70 |
Add New Post /wp-admin/post-new.php | 7.42 ▲1.53 | 100.59 ▲1.63 |
Media Library /wp-admin/upload.php | 4.63 ▲1.40 | 46.79 ▲12.59 |
Maps /wp-admin/edit.php?post_type=wpify_mapycz_map | 4.66 | 45.65 |
Mapy.cz /wp-admin/admin.php?page=wpify-mapy-cz | 4.53 | 38.12 |
Markers /wp-admin/edit.php?post_type=wpify_mapycz_marker | 4.66 | 43.80 |
Server storage [IO: ▲2.92MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 573 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WPify Mapy.cz
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 16.46 ▲2.17 | 1.50 ▼0.40 | 40.26 ▼5.09 |
Dashboard /wp-admin | 2,292 ▲111 | 7.61 ▲1.91 | 212.01 ▲106.87 | 42.21 ▲0.65 |
Posts /wp-admin/edit.php | 2,194 ▲94 | 6.47 ▲4.48 | 61.89 ▲23.04 | 37.09 ▲1.09 |
Add New Post /wp-admin/post-new.php | 6,228 ▲4,694 | 18.89 ▼4.28 | 789.87 ▲130.72 | 39.62 ▼17.29 |
Media Library /wp-admin/upload.php | 1,515 ▲118 | 8.33 ▲4.14 | 113.79 ▲13.41 | 43.96 ▼2.02 |
Maps /wp-admin/edit.php?post_type=wpify_mapycz_map | 1,159 | 6.40 | 55.33 | 28.96 |
Mapy.cz /wp-admin/admin.php?page=wpify-mapy-cz | 921 | 6.16 | 58.77 | 29.76 |
Markers /wp-admin/edit.php?post_type=wpify_mapycz_marker | 1,151 | 6.53 | 58.09 | 27.34 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 326× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WpifyMapyCzDeps\\Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/wpify-mapy-cz/deps/twig/twig/src/Node/Expression/Test/EvenTest.php:22
- > PHP Fatal error
Uncaught Error: Interface 'WpifyMapyCzDeps\\DI\\Definition\\Resolver\\DefinitionResolver' not found in wp-content/plugins/wpify-mapy-cz/deps/php-di/php-di/src/Definition/Resolver/ResolverDispatcher.php:25
- > PHP Fatal error
Uncaught Error: Class 'WpifyMapyCzDeps\\Twig\ode\\Expression\\CallExpression' not found in wp-content/plugins/wpify-mapy-cz/deps/twig/twig/src/Node/Expression/FunctionExpression.php:15
- > PHP Fatal error
Uncaught Error: Class 'WpifyMapyCzDeps\\Twig\\Sandbox\\SecurityError' not found in wp-content/plugins/wpify-mapy-cz/deps/twig/twig/src/Sandbox/SecurityNotAllowedTagError.php:18
- > PHP Fatal error
Uncaught Error: Class 'WpifyMapyCzDeps\\Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/wpify-mapy-cz/deps/twig/twig/src/TokenParser/IncludeTokenParser.php:26
- > PHP Fatal error
Uncaught Error: Class 'WpifyMapyCzDeps\\Codeception\\Test\\Unit' not found in wp-content/plugins/wpify-mapy-cz/deps/wpify/model/tests/CategoryTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'WpifyMapyCzDeps\\Wpify\\CustomFields\\Implementations\\AbstractPostImplementation' not found in wp-content/plugins/wpify-mapy-cz/deps/wpify/custom-fields/src/Implementations/Taxonomy.php:12
- > PHP Fatal error
Uncaught Error: Class 'WpifyMapyCzDeps\\Twig\\Error\\Error' not found in wp-content/plugins/wpify-mapy-cz/deps/twig/twig/src/Error/LoaderError.php:18
- > PHP Fatal error
Uncaught Error: Class 'WpifyMapyCzDeps\\Twig\ode\ode' not found in wp-content/plugins/wpify-mapy-cz/deps/twig/twig/src/Node/DeprecatedNode.php:21
- > PHP Fatal error
Uncaught Error: Class 'WpifyMapyCzDeps\\Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/wpify-mapy-cz/deps/twig/twig/src/Extension/StringLoaderExtension.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Main administration screen.), #2 (Maps administration screen.), #3 (Markers administration screen.), #4 (Marker edit screen.), #5 (Map edit screen.), #6 (Gutenberg block in a page edit screen.), #7 (Map how it is shown on the frontend.)
wpify-mapy-cz/wpify-mapy-cz.php 85% from 13 tests
"WPify Mapy.cz" version 3.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "5.4.0")
- Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.3.0")
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
Good job! No executable or dangerous file extensions detected30,756 lines of code in 547 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 479 | 1,289 | 10,108 | 26,877 |
Markdown | 20 | 702 | 0 | 1,767 |
JSON | 29 | 0 | 0 | 1,428 |
JavaScript | 11 | 64 | 2 | 459 |
PO File | 1 | 78 | 91 | 193 |
YAML | 1 | 1 | 0 | 12 |
reStructuredText | 1 | 8 | 5 | 10 |
SVG | 2 | 0 | 0 | 8 |
CSS | 2 | 1 | 0 | 2 |
Sass | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 8.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 318.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 82 | |
Interfaces | 46 | |
Traits | 1 | |
Classes | 398 | |
▷ Abstract classes | 29 | 7.29% |
▷ Concrete classes | 369 | 92.71% |
▷ Final classes | 80 | 21.68% |
Methods | 2,149 | |
▷ Static methods | 130 | 6.05% |
▷ Public methods | 1,871 | 87.06% |
▷ Protected methods | 101 | 4.70% |
▷ Private methods | 177 | 8.24% |
Functions | 282 | |
▷ Named functions | 174 | 61.70% |
▷ Anonymous functions | 108 | 38.30% |
Constants | 113 | |
▷ Global constants | 11 | 9.73% |
▷ Class constants | 102 | 90.27% |
▷ Public constants | 98 | 96.08% |
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.24MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
deps/wpify/custom-fields/build/images/flags.1952df89.png | 68.68KB | 24.74KB | ▼ 63.98% |
deps/wpify/custom-fields/build/images/flags@2x.276410ff.png | 179.65KB | 69.58KB | ▼ 61.27% |