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.03MB] [CPU: ▼8.63ms] Passed 4 tests
A check of server-side resources used by WP Post Enricher
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.17 ▼2.74 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.22 ▼1.66 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.39 ▲1.87 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.14 ▼28.36 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.29 ▼1.76 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Post Enricher: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲129 | 13.65 ▼0.73 | 1.65 ▲0.17 | 26.91 ▼14.46 |
Dashboard /wp-admin | 2,212 ▲24 | 5.85 ▲0.97 | 101.16 ▼7.49 | 43.37 ▼0.08 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.06 | 37.06 ▲0.25 | 43.88 ▲7.41 |
Add New Post /wp-admin/post-new.php | 6,271 ▲4,752 | 26.16 ▲3.12 | 863.31 ▲207.78 | 56.37 ▲0.28 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.23 ▲0.02 | 97.32 ▼4.10 | 42.07 ▼2.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-post-enricher/views/response-table-twitter.php
- > /wp-content/plugins/wp-post-enricher/views/response-table-youtube.php
- > /wp-content/plugins/wp-post-enricher/views/response-table-google-search.php
- > /wp-content/plugins/wp-post-enricher/views/post-edit-meta-box.php
- > /wp-content/plugins/wp-post-enricher/views/response-table-word-metrics.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-post-enricher/views/response-table-twitter.php on line 8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-post-enricher/views/response-table-google-search.php on line 8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-post-enricher/views/response-table-word-metrics.php on line 11
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-post-enricher/views/response-table-word-metrics.php on line 11
- > PHP Notice
Undefined variable: loadingImgUrl in wp-content/plugins/wp-post-enricher/views/post-edit-meta-box.php on line 34
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-post-enricher/views/response-table-youtube.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'PostEnricher\\Controller\\BaseController' not found in wp-content/plugins/wp-post-enricher/src/PostEnricher/Controller/SearchController.php:8
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-post-enricher/views/response-table-google-search.php on line 8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-post-enricher/views/response-table-twitter.php on line 8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-post-enricher/views/response-table-youtube.php on line 9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot shows what the meta box, in the new post page, look like.), #2 (You can search for youtube videos.), #3 (And also for Word Metrics, like CPC, competition, number of results and search volume.)
wp-post-enricher/wp-post-enricher.php Passed 13 tests
The main PHP script in "WP Post Enricher" version 1.0 is automatically included on every request by WordPress
104 characters long description:
Official WP Post Enricher plugin for WordPress. Improve your post creation. Requires PHP 5.4 or greater.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin647 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 130 | 251 | 575 |
JavaScript | 1 | 7 | 0 | 34 |
CSS | 1 | 0 | 0 | 20 |
Markdown | 1 | 15 | 0 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 15 | 51.72% |
▷ Public methods | 26 | 89.66% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.34% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin