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
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.46ms] Passed 4 tests
Analyzing server-side resources used by WordPress Posted Display
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 53.43 ▲9.24 |
Dashboard /wp-admin | 3.45 ▲0.15 | 51.62 ▼7.61 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 57.53 ▲0.02 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 89.13 ▼17.38 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 41.33 ▲3.12 |
All Settings /wp-admin/admin.php?page=wp-posted-display/wp-posted-display.php | 3.36 | 36.71 |
Add New /wp-admin/admin.php?page=wp-posted-display/includes/wp-posted-display-admin-post.php | 3.43 | 41.01 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_posted_display |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_posted_display_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Posted Display
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 14.63 ▲0.27 | 1.88 ▼0.01 | 43.39 ▲0.51 |
Dashboard /wp-admin | 2,225 ▲45 | 5.66 ▼0.02 | 85.09 ▼4.44 | 39.52 ▼1.00 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.99 ▲0.02 | 38.00 ▼2.08 | 34.91 ▼6.94 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.26 ▲0.14 | 698.23 ▲23.30 | 61.57 ▲6.18 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.24 ▲0.02 | 101.15 ▼8.88 | 45.08 ▼1.02 |
All Settings /wp-admin/admin.php?page=wp-posted-display/wp-posted-display.php | 805 | 2.01 | 24.29 | 25.71 |
Add New /wp-admin/admin.php?page=wp-posted-display/includes/wp-posted-display-admin-post.php | 1,215 | 3.27 | 47.51 | 32.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 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/wp-posted-display/includes/wp-posted-display-admin-widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-posted-display/wp-posted-display.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Create an HTML template to be output in the Widget.), #2 ("Posted Display" has been added to the Widget. Display to select the template you created.)
wp-posted-display/wp-posted-display.php Passed 13 tests
The main PHP script in "WordPress Posted Display" version 2.5.0 is automatically included on every request by WordPress
109 characters long description:
Plug-in Posted Display Widget & ShortCode Add. You can also save and display your browsing history to Cookie.
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
Good job! No executable or dangerous file extensions detected1,119 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 178 | 539 | 903 |
PO File | 1 | 42 | 48 | 101 |
JavaScript | 3 | 9 | 15 | 68 |
CSS | 2 | 1 | 2 | 47 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 19.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 72.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 27.08% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 98.09KB | 30.75KB | ▼ 68.65% |
screenshot-2.png | 33.83KB | 11.67KB | ▼ 65.52% |