Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.04ms] Passed 4 tests
Analyzing server-side resources used by Display Medium Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 36.61 ▼5.53 |
Dashboard /wp-admin | 3.38 ▲0.07 | 50.33 ▼3.93 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 52.34 ▲5.17 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.81 ▲0.15 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.41 ▲5.34 |
Medium Posts /wp-admin/options-general.php?page=display-medium-posts | 3.31 | 36.33 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Display Medium Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲158 | 13.60 ▼0.69 | 7.98 ▲6.32 | 39.51 ▼5.25 |
Dashboard /wp-admin | 2,207 ▲19 | 5.81 ▲0.76 | 95.82 ▼18.42 | 39.85 ▼9.13 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.02 ▼0.04 | 42.19 ▲5.10 | 36.27 ▲1.92 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 23.28 ▲5.72 | 606.41 ▼80.68 | 53.47 ▼6.72 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.18 ▼0.10 | 100.69 ▼3.03 | 41.14 ▼2.71 |
Medium Posts /wp-admin/options-general.php?page=display-medium-posts | 1,219 | 3.41 | 55.56 | 28.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/display-medium-posts/public/partials/display-medium-posts-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/display-medium-posts/admin/partials/display-medium-posts-admin-display.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: mediumcom, posts, medium, shortcodes
display-medium-posts/display-medium-posts.php Passed 13 tests
Analyzing the main PHP file in "Display Medium Posts" version 5.0.1
120 characters long description:
Display Medium Posts is a wordpress plugin that allows users display posts from medium.com on any part of their website.
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
Everything looks great! No dangerous files found in this plugin2,059 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 210 | 71 | 1,341 |
PHP | 12 | 162 | 562 | 424 |
CSS | 5 | 18 | 36 | 294 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/vendors/owl-carousel/grabbing.png | 0.11KB | 0.14KB | 0.00% |