Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.88ms] Passed 4 tests
Server-side resources used by About US Post Type
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.87 ▼3.13 |
Dashboard /wp-admin | 3.38 ▲0.03 | 53.26 ▼7.87 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.77 ▲2.53 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.31 ▲0.68 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.48 ▼1.20 |
All About US /wp-admin/edit.php?post_type=about_post_type | 3.35 | 36.26 |
Add New /wp-admin/post-new.php?post_type=about_post_type | 3.40 | 46.32 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for About US Post Type
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,092 ▲346 | 15.46 ▲1.15 | 7.35 ▲5.28 | 55.31 ▲14.35 |
Dashboard /wp-admin | 2,374 ▲186 | 6.43 ▲1.54 | 125.06 ▲20.11 | 91.17 ▲45.96 |
Posts /wp-admin/edit.php | 2,298 ▲209 | 3.48 ▲1.43 | 45.93 ▲9.37 | 75.17 ▲41.92 |
Add New Post /wp-admin/post-new.php | 1,707 ▲174 | 22.26 ▼0.97 | 637.89 ▲17.27 | 36.62 ▼20.68 |
Media Library /wp-admin/upload.php | 1,437 ▲55 | 4.15 ▼0.01 | 79.42 ▼20.11 | 80.48 ▲40.28 |
All About US /wp-admin/edit.php?post_type=about_post_type | 1,279 | 3.38 | 43.15 | 62.00 |
Add New /wp-admin/post-new.php?post_type=about_post_type | 2,179 | 7.58 | 163.55 | 126.74 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/about-post-type/inc/thumbnails.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-post-type/inc/front-end.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-post-type/inc/class-about-post-type.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-post-type/about-post-type.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=about_post_type
- > Network (severe)
wp-content/plugins/about-post-type//js/admin.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not 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 to be fixed:
- Screenshots: Please add an image for screenshot #1 (Admin Panel view of submitted form data.)
about-post-type/about-post-type.php Passed 13 tests
The principal PHP file in "About US Post Type" v. 1.0 is loaded by WordPress automatically on each request
40 characters long description:
Simple WordPress About Post Type Plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin337 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 33 | 1 | 186 |
PHP | 4 | 68 | 34 | 151 |
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.11 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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
6 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.58KB | 1.43KB | ▼ 9.69% |
screenshot-2.png | 12.53KB | 6.80KB | ▼ 45.73% |
images/find-img.png | 28.58KB | 10.85KB | ▼ 62.03% |
images/remove.png | 1.80KB | 1.48KB | ▼ 17.60% |
screenshot-1.png | 133.27KB | 40.96KB | ▼ 69.26% |