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
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼0.81ms] Passed 4 tests
Analyzing server-side resources used by SetMore Theme - Custom Post Types
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.41 ▼6.00 |
Dashboard /wp-admin | 3.44 ▲0.14 | 51.97 ▼0.93 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 50.86 ▲2.81 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 91.18 ▲0.88 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.51 ▲8.29 |
All People /wp-admin/edit.php?post_type=people | 3.41 | 38.51 |
All Service /wp-admin/edit.php?post_type=service | 3.41 | 37.31 |
Add New /wp-admin/post-new.php?post_type=service | 3.52 | 51.53 |
Service Categories /wp-admin/edit-tags.php?taxonomy=service_category&post_type=service | 3.36 | 35.76 |
People Categories /wp-admin/edit-tags.php?taxonomy=people_category&post_type=people | 3.36 | 31.83 |
Add New /wp-admin/post-new.php?post_type=people | 3.52 | 53.65 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for SetMore Theme - Custom Post Types
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 14.35 ▲0.01 | 2.48 ▲0.70 | 40.33 ▼3.93 |
Dashboard /wp-admin | 2,260 ▲83 | 5.60 ▼0.03 | 84.12 ▼17.94 | 39.37 ▼3.65 |
Posts /wp-admin/edit.php | 2,165 ▲68 | 2.04 ▲0.02 | 54.54 ▲17.80 | 45.19 ▲10.06 |
Add New Post /wp-admin/post-new.php | 1,578 ▲52 | 23.47 ▲0.45 | 680.27 ▲56.82 | 66.71 ▲20.25 |
Media Library /wp-admin/upload.php | 1,453 ▲53 | 4.24 ▲0.10 | 102.73 ▲2.55 | 46.33 ▲2.43 |
All People /wp-admin/edit.php?post_type=people | 1,160 | 2.00 | 31.27 | 33.86 |
All Service /wp-admin/edit.php?post_type=service | 1,160 | 1.93 | 33.12 | 30.79 |
Add New /wp-admin/post-new.php?post_type=service | 2,660 | 7.70 | 175.93 | 68.86 |
Service Categories /wp-admin/edit-tags.php?taxonomy=service_category&post_type=service | 1,339 | 2.12 | 27.15 | 29.89 |
People Categories /wp-admin/edit-tags.php?taxonomy=people_category&post_type=people | 1,339 | 2.13 | 26.25 | 26.94 |
Add New /wp-admin/post-new.php?post_type=people | 2,935 | 7.77 | 170.79 | 66.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/service-provider-profile-cpt/trunk/service-provider-profile-cpt.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/service-provider-profile-cpt/service-provider-profile-cpt.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 ("Add New Staff” section and displays all the entries for “Staff” post type), #2 ("Add New Services” section and displays all the entries for “Services” post type), #3 (Displays the “Staff Category" section), #4 (Displays the “Services Category" section)
service-provider-profile-cpt/service-provider-profile-cpt.php Passed 13 tests
The principal PHP file in "SetMore Theme - Custom Post Types" v. 1.1 is loaded by WordPress automatically on each request
69 characters long description:
Creates "Staff", "Services" custom post type for FREE SetMore Themes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin502 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 118 | 46 | 502 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 78 | |
▷ Named functions | 78 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 1.77MB with 1.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/screenshot-1.png | 198.04KB | 55.99KB | ▼ 71.73% |
trunk/screenshot-2.png | 216.41KB | 61.28KB | ▼ 71.68% |
screenshot-1.png | 198.04KB | 55.99KB | ▼ 71.73% |
screenshot-4.png | 241.30KB | 70.44KB | ▼ 70.81% |
screenshot-3.png | 252.27KB | 73.72KB | ▼ 70.78% |