Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.38MB] [CPU: ▼179.95ms] Passed 4 tests
Analyzing server-side resources used by AccessPress Custom Post Type
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.22 ▲0.38 | 26.65 ▲3.27 |
Dashboard /wp-admin | 3.46 ▲0.39 | 33.66 ▼2.41 |
Posts /wp-admin/edit.php | 3.56 ▲0.45 | 32.91 ▲1.38 |
Add New Post /wp-admin/post-new.php | 5.83 ▲0.39 | 71.70 ▼715.32 |
Media Library /wp-admin/upload.php | 3.39 ▲0.39 | 25.33 ▼3.43 |
All Testimonials /wp-admin/edit.php?post_type=testimonials | 3.43 | 26.31 |
All Services /wp-admin/edit.php?post_type=services | 3.43 | 25.07 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolios | 3.39 | 24.30 |
All Price Tables /wp-admin/edit.php?post_type=price-table | 3.43 | 27.90 |
All Products /wp-admin/edit.php?post_type=products | 3.43 | 23.66 |
Add Price Table /wp-admin/post-new.php?post_type=price-table | 3.47 | 32.37 |
Add New /wp-admin/post-new.php?post_type=team-members | 3.52 | 46.30 |
Add New /wp-admin/post-new.php?post_type=clients | 3.52 | 44.82 |
All Clients /wp-admin/edit.php?post_type=clients | 3.43 | 27.26 |
All Portfolios /wp-admin/edit.php?post_type=portfolios | 3.43 | 23.91 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by AccessPress Custom Post Type
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,954 ▲353 | 16.02 ▼0.02 | 6.52 ▲0.97 | 75.34 ▼2.78 |
Dashboard /wp-admin | 3,187 ▲288 | 6.24 ▲0.15 | 119.31 ▼11.39 | 170.43 ▼8.49 |
Posts /wp-admin/edit.php | 2,997 ▲257 | 3.28 ▲0.04 | 66.61 ▼4.88 | 140.22 ▼6.98 |
Add New Post /wp-admin/post-new.php | 2,051 ▼1,648 | 21.28 ▲2.36 | 393.52 ▼51.12 | 162.75 ▲9.32 |
Media Library /wp-admin/upload.php | 2,009 ▲260 | 5.46 ▼0.08 | 138.95 ▼85.67 | 183.91 ▼51.16 |
All Testimonials /wp-admin/edit.php?post_type=testimonials | 1,678 | 3.20 | 62.69 | 114.62 |
All Services /wp-admin/edit.php?post_type=services | 1,678 | 3.21 | 62.71 | 114.59 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolios | 2,011 | 2.84 | 58.76 | 126.49 |
All Price Tables /wp-admin/edit.php?post_type=price-table | 1,678 | 3.20 | 64.11 | 111.85 |
All Products /wp-admin/edit.php?post_type=products | 1,675 | 3.20 | 63.37 | 112.14 |
Add Price Table /wp-admin/post-new.php?post_type=price-table | 5,074 | 4.31 | 108.36 | 237.10 |
Add New /wp-admin/post-new.php?post_type=team-members | 3,235 | 10.16 | 192.20 | 206.05 |
Add New /wp-admin/post-new.php?post_type=clients | 3,175 | 10.00 | 185.44 | 205.50 |
All Clients /wp-admin/edit.php?post_type=clients | 1,678 | 3.20 | 60.05 | 108.83 |
All Portfolios /wp-admin/edit.php?post_type=portfolios | 1,702 | 3.22 | 63.61 | 115.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=price-table
- > Notice in wp-content/plugins/accesspress-custom-post-type/inc/backend/metaboxes/price-metabox.php+257
Undefined variable: table_icon
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 11× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/accesspress-custom-post-type/inc/frontend/shortcodes.php
- > /wp-content/plugins/accesspress-custom-post-type/inc/backend/metaboxes/service-metabox.php
- > /wp-content/plugins/accesspress-custom-post-type/inc/backend/save-settings.php
- > /wp-content/plugins/accesspress-custom-post-type/inc/backend/post-types.php
- > /wp-content/plugins/accesspress-custom-post-type/inc/backend/metaboxes/portfolio-metabox.php
- > /wp-content/plugins/accesspress-custom-post-type/inc/backend/metaboxes/testimonials-metabox.php
- > /wp-content/plugins/accesspress-custom-post-type/inc/backend/metaboxes/price-metabox.php
- > /wp-content/plugins/accesspress-custom-post-type/inc/backend/metaboxes/clients-metabox.php
- > /wp-content/plugins/accesspress-custom-post-type/inc/backend/metaboxes/products-metabox.php
- > /wp-content/plugins/accesspress-custom-post-type/inc/backend/metaboxes/team-member-metabox.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% 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:
- Tags: You are using too many tags: 12 tag instead of maximum 10
accesspress-custom-post-type/accesspress-cpt.php 77% from 13 tests
The main file in "AccessPress Custom Post Type" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Main file name: It is recommended to name the main PHP file as the plugin slug ("accesspress-custom-post-type.php" instead of "accesspress-cpt.php")
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
No dangerous file extensions were detected5,339 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 44 | 53 | 2,880 |
PHP | 12 | 129 | 154 | 1,716 |
SVG | 1 | 0 | 0 | 685 |
JavaScript | 1 | 4 | 4 | 58 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
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 | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sc-icon.png | 1.30KB | 0.31KB | ▼ 76.19% |