Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.47ms] Passed 4 tests
Server-side resources used by News List ShortCode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.07 | 41.36 ▲0.48 |
Dashboard /wp-admin | 3.41 ▲0.02 | 53.87 ▼12.49 |
Posts /wp-admin/edit.php | 3.52 ▲0.13 | 52.69 ▼2.19 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.06 | 94.30 ▼23.69 |
Media Library /wp-admin/upload.php | 3.33 ▲0.06 | 38.96 ▲0.54 |
Genre /wp-admin/edit-tags.php?taxonomy=news_genre&post_type=news | 3.33 | 36.85 |
All News /wp-admin/edit.php?post_type=news | 3.38 | 37.49 |
Add New /wp-admin/post-new.php?post_type=news | 3.46 | 53.68 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for News List ShortCode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.35 ▼0.30 | 1.63 ▲0.16 | 45.89 ▲3.33 |
Dashboard /wp-admin | 2,226 ▲49 | 5.62 ▼0.03 | 94.26 ▲5.50 | 42.11 ▼0.99 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.02 ▲0.08 | 37.51 ▼0.28 | 31.48 ▼4.83 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.15 ▲0.05 | 672.78 ▼72.33 | 62.24 ▲3.17 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.20 ▼0.04 | 97.67 ▼23.55 | 40.95 ▼8.85 |
Genre /wp-admin/edit-tags.php?taxonomy=news_genre&post_type=news | 1,302 | 2.24 | 27.91 | 32.47 |
All News /wp-admin/edit.php?post_type=news | 1,112 | 1.94 | 31.83 | 30.34 |
Add New /wp-admin/post-new.php?post_type=news | 2,412 | 7.64 | 170.97 | 64.47 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/news-list-shortcode/news-list-shortcode.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: news, post list, shortcode
news-list-shortcode/news-list-shortcode.php 92% from 13 tests
"News List ShortCode" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin168 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 41 | 168 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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