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
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▲0.90ms] Passed 4 tests
This is a short check of server-side resources used by Contentools Integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 49.43 ▲11.63 |
Dashboard /wp-admin | 3.50 ▲0.19 | 61.01 ▲8.83 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 51.51 ▲1.67 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 88.64 ▼15.69 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 43.42 ▲8.78 |
Contentools /wp-admin/options-general.php?page=contentools | 3.39 | 40.47 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- Illegal file modification detected: 1 file (0.62KB) outside of "wp-content/plugins/wp-contentools/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Contentools Integration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲146 | 13.42 ▼0.93 | 8.16 ▲6.61 | 43.25 ▲0.52 |
Dashboard /wp-admin | 2,205 ▲34 | 5.57 ▼0.10 | 84.39 ▼16.86 | 39.16 ▼6.03 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.00 ▲0.02 | 35.77 ▼24.51 | 32.44 ▼3.72 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 23.08 ▲5.05 | 677.57 ▲48.65 | 53.72 ▼18.15 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▼0.01 | 98.33 ▼10.42 | 43.38 ▼3.93 |
Contentools /wp-admin/options-general.php?page=contentools | 834 | 2.15 | 25.46 | 24.09 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-contentools/public/partials/contentools-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-contentools/admin/partials/contentools-admin-display.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Donate link: Invalid URI found ("")
- Screenshots: Add a description for screenshot #1 in wp-contentools/assets to your readme.txt
wp-contentools/contentools.php 85% from 13 tests
"Contentools Integration" version 3.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("wp-contentools.php" instead of "contentools.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,060 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 386 | 715 | 753 |
JavaScript | 3 | 39 | 126 | 307 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 2 | 4.26% |
▷ Public methods | 41 | 87.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.77% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin