Benchmarks
Plugin footprint 82% 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: ▲1.90MB] [CPU: ▲16.08ms] 75% from 4 tests
Analyzing server-side resources used by Logic Hop - Dynamic Content Personalization for WordPress
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 1,417.53ms on /wp-admin/admin.php?page=logichop-dashboard)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.35 ▲1.89 | 67.93 ▲27.32 |
Dashboard /wp-admin | 5.23 ▲1.88 | 75.69 ▲15.12 |
Posts /wp-admin/edit.php | 5.28 ▲1.92 | 57.70 ▲6.97 |
Add New Post /wp-admin/post-new.php | 7.87 ▲1.98 | 115.08 ▲20.64 |
Media Library /wp-admin/upload.php | 5.16 ▲1.93 | 58.09 ▲21.59 |
Settings /wp-admin/admin.php?page=logichop-settings | 5.19 | 338.19 |
Dashboard /wp-admin/admin.php?page=logichop-dashboard | 6.43 | 1,417.53 |
Integrations /wp-admin/admin.php?page=logichop-integrations | 5.13 | 46.30 |
Server storage [IO: ▲3.58MB] [DB: ▲0.09MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 105 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_logichop_local_storage |
New WordPress options |
---|
logichop_data |
db_upgraded |
logichop_local_storage |
theysaidso_admin_options |
logichop-settings |
logichop_instance |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Logic Hop - Dynamic Content Personalization for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,986 ▲199 | 14.30 ▼0.05 | 1.81 ▼0.21 | 43.05 ▼0.08 |
Dashboard /wp-admin | 2,353 ▲176 | 5.57 ▼0.08 | 83.56 ▼18.18 | 71.86 ▲29.01 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 1.98 ▼0.03 | 35.52 ▼4.93 | 34.59 ▲0.88 |
Add New Post /wp-admin/post-new.php | 2,218 ▲692 | 23.42 ▲0.25 | 765.73 ▲83.82 | 61.52 ▼2.41 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.23 ▲0.02 | 110.64 ▲6.18 | 75.85 ▲29.07 |
Settings /wp-admin/admin.php?page=logichop-settings | 1,419 | 1.68 | 25.51 | 38.70 |
Dashboard /wp-admin/admin.php?page=logichop-dashboard | 890 | 2.01 | 24.10 | 28.80 |
Integrations /wp-admin/admin.php?page=logichop-integrations | 1,017 | 2.00 | 24.10 | 27.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/logic-hop/admin/partials/conditions.php
- > /wp-content/plugins/logic-hop/admin/partials/dashboard.php
- > /wp-content/plugins/logic-hop/admin/index.php
- > /wp-content/plugins/logic-hop/logichop.php
- > /wp-content/plugins/logic-hop/admin/partials/insights.php
- > /wp-content/plugins/logic-hop/admin/partials/settings.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/logic-hop/includes/classes/CrawlerDetect/Fixtures/Headers.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/logic-hop/admin/partials/instructions.php:23
- > PHP Fatal error
Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/logic-hop/includes/classes/CrawlerDetect/Fixtures/Crawlers.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/logic-hop/admin/partials/addons.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/logic-hop/admin/notices.php:85
- > PHP Fatal error
Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/logic-hop/includes/classes/CrawlerDetect/Fixtures/Exclusions.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: crm, zoho, dynamic content, hubspot, personalization...
logic-hop/logichop.php 62% from 13 tests
The main PHP file in "Logic Hop - Dynamic Content Personalization for WordPress" ver. 3.8.8 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("logic-hop.php" instead of "logichop.php")
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 236 characters long)
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
Good job! No executable or dangerous file extensions detected28,833 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 1,678 | 3,645 | 13,709 |
JavaScript | 25 | 1,930 | 1,340 | 13,060 |
CSS | 12 | 167 | 25 | 1,197 |
PO File | 1 | 363 | 480 | 798 |
SVG | 2 | 0 | 2 | 37 |
Sass | 1 | 2 | 0 | 32 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 53.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 359.00 |
Average method complexity | 5.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 1 | 3.33% |
▷ Concrete classes | 29 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 369 | |
▷ Static methods | 34 | 9.21% |
▷ Public methods | 353 | 95.66% |
▷ Protected methods | 4 | 1.08% |
▷ Private methods | 12 | 3.25% |
Functions | 55 | |
▷ Named functions | 7 | 12.73% |
▷ Anonymous functions | 48 | 87.27% |
Constants | 19 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 19 | 100.00% |
▷ Public constants | 19 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 1.84MB with 1.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-9.png | 249.26KB | 101.78KB | ▼ 59.17% |
screenshot-6.png | 65.16KB | 26.77KB | ▼ 58.93% |
screenshot-3.png | 283.79KB | 120.15KB | ▼ 57.66% |
admin/images/icon.png | 0.34KB | 0.23KB | ▼ 32.56% |
screenshot-2.png | 488.21KB | 181.34KB | ▼ 62.86% |