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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼0.15ms] Passed 4 tests
This is a short check of server-side resources used by Dynamically Display Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.59 ▼0.96 |
Dashboard /wp-admin | 3.51 ▲0.21 | 48.39 ▼0.15 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 47.25 ▲1.72 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 96.46 ▼1.22 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.01 ▲2.89 |
DDP Settings /wp-admin/options-general.php?page=mx_ddp_settings | 3.34 | 31.57 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Dynamically Display Posts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲197 | 14.13 ▼0.24 | 9.50 ▲7.69 | 37.28 ▼2.71 |
Dashboard /wp-admin | 2,211 ▲23 | 5.80 ▼0.10 | 96.69 ▼8.50 | 44.28 ▲1.08 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 1.99 ▼0.03 | 40.27 ▲3.83 | 35.44 ▲3.72 |
Add New Post /wp-admin/post-new.php | 1,522 ▲2 | 23.53 ▲0.42 | 632.83 ▼33.32 | 52.16 ▲3.53 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.19 ▼0.03 | 96.55 ▼6.45 | 44.53 ▼3.10 |
DDP Settings /wp-admin/options-general.php?page=mx_ddp_settings | 817 | 2.05 | 24.78 | 28.92 |
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
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dynamically-display-posts/includes/admin/views/settings-page.php:3
- > PHP Fatal error
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 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: pagination, display cpt, load more button, display posts
dynamically-display-posts/dynamically-display-posts.php Passed 13 tests
The entry point to "Dynamically Display Posts" version 1.1 is a PHP file that has certain tags in its header comment area
78 characters long description:
This plugin allows you to display a list of posts on your website on any page.
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
Good job! No executable or dangerous file extensions detected14,215 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,424 | 1,535 | 9,903 |
CSS | 4 | 1 | 15 | 2,422 |
PHP | 27 | 821 | 417 | 1,172 |
SVG | 1 | 0 | 0 | 685 |
PO File | 1 | 8 | 8 | 33 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 1 | 4.76% |
Methods | 66 | |
▷ Static methods | 20 | 30.30% |
▷ Public methods | 66 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 7 | |
▷ Global constants | 7 | 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 files were detected