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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.35MB] [CPU: ▲2.40ms] Passed 4 tests
A check of server-side resources used by Post Content Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 43.93 ▼2.14 |
Dashboard /wp-admin | 3.66 ▲0.36 | 53.70 ▲0.03 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 55.06 ▲6.37 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 98.59 ▲7.18 |
Media Library /wp-admin/upload.php | 3.59 ▲0.35 | 40.75 ▲5.35 |
Post Content Shortcodes /wp-admin/options-general.php?page=post-content-shortcodes | 3.55 | 33.66 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_pcs-list-widget |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_pcs-content-widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Content Shortcodes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.69 ▲0.45 | 1.88 ▼0.22 | 43.25 ▼0.91 |
Dashboard /wp-admin | 2,196 ▲16 | 5.50 ▼0.18 | 88.18 ▼1.10 | 41.57 ▼2.64 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▼0.16 | 34.61 ▼2.63 | 38.40 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 18.25 ▼4.84 | 626.07 ▲7.36 | 55.50 ▲0.34 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▼0.03 | 97.19 ▼3.54 | 43.80 ▼1.78 |
Post Content Shortcodes /wp-admin/options-general.php?page=post-content-shortcodes | 836 | 2.00 | 23.04 | 28.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_pcs-list-widget
- widget_pcs-content-widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/post-content-shortcodes/classes/class-post-content-shortcodes-admin.php
- > /wp-content/plugins/post-content-shortcodes/classes/class-post-content-shortcodes.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/post-content-shortcodes/classes/class-post-content-widgets.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/post-content-shortcodes/post-content-shortcodes.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (An example of the post-list shortcode being used within the Twenty Seventeen theme, with the default PCS styles **disabled**)
post-content-shortcodes/post-content-shortcodes.php Passed 13 tests
This is the main PHP file of "Post Content Shortcodes" version 1.0.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
78 characters long description:
Adds shortcodes to show the content of another post or to show a list of posts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,778 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 209 | 822 | 1,430 |
Markdown | 1 | 143 | 0 | 288 |
CSS | 1 | 7 | 6 | 60 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 64.60 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 6.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.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 | 55 | |
▷ Static methods | 2 | 3.64% |
▷ Public methods | 44 | 80.00% |
▷ Protected methods | 8 | 14.55% |
▷ Private methods | 3 | 5.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.11MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot3.png | 20.17KB | 19.05KB | ▼ 5.53% |
screenshot2.png | 62.48KB | 60.65KB | ▼ 2.93% |
screenshot.png | 27.46KB | 26.56KB | ▼ 3.30% |