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.02MB] [CPU: ▼4.67ms] Passed 4 tests
This is a short check of server-side resources used by Post Type Icons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.01 ▲3.80 |
Dashboard /wp-admin | 3.32 ▲0.02 | 54.45 ▼5.09 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 51.59 ▼0.00 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.21 ▼13.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.92 ▲0.01 |
Post Type Icons /wp-admin/tools.php?page=pti | 3.54 | 33.40 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Post Type Icons: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.37 ▼0.36 | 1.78 ▼0.58 | 43.80 ▼0.48 |
Dashboard /wp-admin | 2,205 ▲28 | 5.56 ▼0.01 | 86.20 ▼15.20 | 39.40 ▼1.96 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.04 ▲0.02 | 41.35 ▲4.10 | 36.78 ▲3.46 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.08 ▲0.08 | 661.56 ▼20.27 | 55.11 ▼16.93 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.25 ▲0.04 | 95.99 ▼5.60 | 42.19 ▼4.02 |
Post Type Icons /wp-admin/tools.php?page=pti | 3,057 | 1.18 | 25.25 | 74.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/post-type-icons/post-type-icons.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/post-type-icons/font-awesome/class-pti-font-awesome.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: pizzazz, custom post type, custom post types, icons, ui...
post-type-icons/post-type-icons.php Passed 13 tests
The entry point to "Post Type Icons" version 0.2.2 is a PHP file that has certain tags in its header comment area
49 characters long description:
A simple plugin for setting icons for post types.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,384 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 47 | 62 | 970 |
SVG | 1 | 0 | 0 | 414 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 410)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.93 |
Average class complexity | 211.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 417.00 |
Average method complexity | 23.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 410.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 17 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.53% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin