Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼143.01ms] Passed 4 tests
An overview of server-side resources used by Custom Posts Builder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.63 ▲16.23 |
Dashboard /wp-admin | 3.12 ▲0.07 | 40.49 ▼2.38 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 49.07 ▲2.89 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 91.56 ▼575.08 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 36.63 ▲2.54 |
CPB /wp-admin/admin.php?page=cpb | 3.07 | 33.26 |
Getting started with Custom Posts Builder /wp-admin/index.php?page=cpb-getting-started | 3.05 | 32.63 |
Tools /wp-admin/admin.php?page=cpb_tools | 3.07 | 30.99 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 1 new option
New WordPress options |
---|
cpb_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Posts Builder
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,919 ▲323 | 19.00 ▲3.39 | 8.90 ▼4.47 | 45.38 ▼1.30 |
Dashboard /wp-admin | 3,210 ▲279 | 8.74 ▲2.78 | 182.12 ▲35.71 | 109.11 ▼6.57 |
Posts /wp-admin/edit.php | 3,008 ▲269 | 5.53 ▲2.82 | 96.19 ▲21.95 | 86.30 ▼10.11 |
Add New Post /wp-admin/post-new.php | 1,915 ▲232 | 16.55 ▼1.95 | 409.36 ▲28.80 | 113.37 ▼0.11 |
Media Library /wp-admin/upload.php | 1,854 ▲47 | 5.21 ▲0.16 | 142.67 ▼49.81 | 113.01 ▼5.08 |
CPB /wp-admin/admin.php?page=cpb | 3,795 | 5.39 | 92.39 | 73.41 |
Getting started with Custom Posts Builder /wp-admin/index.php?page=cpb-getting-started | 1,603 | 4.87 | 90.88 | 135.35 |
Tools /wp-admin/admin.php?page=cpb_tools | 1,360 | 4.87 | 91.81 | 74.96 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- cpb_version
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-posts-builder/common/class-cpb-public.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-posts-builder/common/install.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-posts-builder/common/functions.php:292
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-posts-builder/admin/view/tools.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/custom-posts-builder/common/class-shortcode-parser.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-posts-builder/admin/view/crud.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
custom-posts-builder/custom-posts-builder.php Passed 13 tests
This is the main PHP file of "Custom Posts Builder" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
33 characters long description:
Best custom posts manager.period.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin3,177 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 756 | 749 | 2,165 |
CSS | 2 | 33 | 29 | 618 |
JavaScript | 2 | 118 | 83 | 375 |
Markdown | 1 | 11 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 72 | |
▷ Static methods | 2 | 2.78% |
▷ Public methods | 69 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.17% |
Functions | 41 | |
▷ Named functions | 40 | 97.56% |
▷ Anonymous functions | 1 | 2.44% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/ss/custom-posts-builder-unlimited-posts.png | 23.70KB | 10.80KB | ▼ 54.42% |