Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/my-medium-article/includes/class-my-medium-article.php+11
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.92MB] [CPU: ▼49.86ms] Passed 4 tests
Server-side resources used by My Medium Article
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 6.15 ▼35.43 |
Dashboard /wp-admin | 2.09 ▼1.21 | 8.09 ▼43.08 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 9.64 ▼33.60 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 9.51 ▼87.33 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 7.96 ▼33.24 |
My Medium Article /wp-admin/options-general.php?page=my-medium-article | 2.09 | 8.57 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_my_medium_article_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for My Medium Article
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.28 ▼0.30 | 1.85 ▲0.20 | 41.06 ▼1.58 |
Dashboard /wp-admin | 2,203 ▲26 | 5.59 ▼0.07 | 92.33 ▼0.95 | 36.34 ▼5.52 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.03 ▲0.02 | 39.61 ▼0.09 | 33.47 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,533 ▼156 | 23.53 ▼0.91 | 688.68 ▲60.78 | 51.06 ▼8.89 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.26 ▲0.05 | 100.81 ▼8.24 | 41.62 ▼5.85 |
My Medium Article /wp-admin/options-general.php?page=my-medium-article | 887 | 2.17 | 25.05 | 30.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/my-medium-article/includes/class-my-medium-article.php+11
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_my_medium_article_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=my-medium-article
- > Notice in wp-content/plugins/my-medium-article/my-medium-article.php+70
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=my-medium-article
- > Notice in wp-content/plugins/my-medium-article/includes/class-my-medium-article-admin.php+65
Undefined variable: medium_id
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/my-medium-article/includes/class-my-medium-article-widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/my-medium-article/my-medium-article.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
7 plugin tags: widgets, posts, mediumcom, shortcodes, embed...
my-medium-article/my-medium-article.php Passed 13 tests
The principal PHP file in "My Medium Article" v. 1.0.0 is loaded by WordPress automatically on each request
103 characters long description:
Display the article list from a Medium using Medium feed and keep always updated even for cached posts.
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
No dangerous file extensions were detected658 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 153 | 78 | 473 |
PO File | 1 | 26 | 35 | 65 |
CSS | 1 | 12 | 0 | 64 |
JavaScript | 2 | 11 | 4 | 56 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.18% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin