Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼4.69ms] Passed 4 tests
A check of server-side resources used by Croct - Content Personalization for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.13 | 46.75 ▼1.23 |
Dashboard /wp-admin | 3.75 ▲0.18 | 52.17 ▼0.52 |
Posts /wp-admin/edit.php | 3.80 ▲0.12 | 55.52 ▼0.41 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.22 | 86.37 ▼16.59 |
Media Library /wp-admin/upload.php | 3.67 ▲0.18 | 43.47 ▲0.23 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Croct - Content Personalization for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.26 ▼0.03 | 1.89 ▲0.07 | 43.69 ▼5.13 |
Dashboard /wp-admin | 2,209 ▲29 | 5.70 ▲0.06 | 87.43 ▼2.10 | 70.84 ▲25.35 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.97 ▼0.03 | 39.52 ▲1.30 | 34.92 ▼3.57 |
Add New Post /wp-admin/post-new.php | 6,271 ▲4,731 | 26.18 ▲2.78 | 1,057.57 ▲340.67 | 68.79 ▲14.83 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.17 ▼0.00 | 113.04 ▼7.21 | 53.14 ▲4.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
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
Good news, no errors were detected
SRP 50% 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 fix the following items
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Croct\\WordPress\\ExternalDependency' not found in wp-content/plugins/croct/src/Dependency/TagifyStyle.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Croct\\WordPress\\Dependency' not found in wp-content/plugins/croct/src/ExternalDependency.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Croct\\WordPress\\Shortcode' not found in wp-content/plugins/croct/src/Shortcode/PersonalizedShortcode.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Croct\\WordPress\\InlineDependency' not found in wp-content/plugins/croct/src/Dependency/TagifyInitScript.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Croct\\WordPress\\Admin\\Settings\\Field' not found in wp-content/plugins/croct/src/Admin/Settings/SelectField.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Croct\\WordPress\\HookListener' not found in wp-content/plugins/croct/src/Listener/InterestMetatag.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Croct\\WordPress\\Dependency' not found in wp-content/plugins/croct/src/InlineDependency.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Croct\\WordPress\\Admin\\Settings\\Section' not found in wp-content/plugins/croct/src/Admin/Settings/GeneralSection.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Croct\\WordPress\\ExternalDependency' not found in wp-content/plugins/croct/src/Dependency/PlugScript.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Croct\\WordPress\\Shortcode' not found in wp-content/plugins/croct/src/Shortcode/IfShortcode.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
6 plugin tags: marketing, croct, content personalization, optimization, personalization...
croct/croct.php 85% from 13 tests
The main PHP file in "Croct - Content Personalization for WordPress" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("5.4" instead of "5.6")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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 plugin1,258 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 328 | 381 | 1,159 |
JavaScript | 2 | 19 | 0 | 94 |
SVG | 1 | 0 | 0 | 4 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 8 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 21 | 100.00% |
Methods | 121 | |
▷ Static methods | 1 | 0.83% |
▷ Public methods | 103 | 85.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 14.88% |
Functions | 14 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 14 | 100.00% |
Constants | 34 | |
▷ Global constants | 1 | 2.94% |
▷ Class constants | 33 | 97.06% |
▷ Public constants | 33 | 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
No PNG files were detected