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.10MB] [CPU: ▼153.54ms] Passed 4 tests
Server-side resources used by Custom Post Type Generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 35.57 ▲14.96 |
Dashboard /wp-admin | 3.15 ▲0.10 | 47.76 ▲3.29 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 45.66 ▲1.84 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 90.15 ▼620.06 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 34.99 ▲0.78 |
Custom Post Type /wp-admin/admin.php?page=cptg-manage-cpt | 3.11 | 31.81 |
Custom Taxonomy /wp-admin/admin.php?page=cptg-manage-tax | 3.11 | 34.05 |
Add New /wp-admin/admin.php?page=cptg-regist-tax | 3.18 | 32.86 |
Add New /wp-admin/admin.php?page=cptg-regist-cpt | 3.28 | 31.27 |
Export /wp-admin/admin.php?page=cptg-export | 3.32 | 34.92 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
cptg_activation |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Post Type Generator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,742 ▲146 | 15.99 ▲0.01 | 11.51 ▲1.07 | 48.54 ▲0.98 |
Dashboard /wp-admin | 3,028 ▲94 | 6.00 ▼0.09 | 135.47 ▼6.28 | 110.91 ▼1.81 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.73 ▲0.01 | 65.17 ▼3.39 | 100.08 ▲4.09 |
Add New Post /wp-admin/post-new.php | 1,897 ▲25 | 19.21 ▲0.07 | 390.85 ▲28.21 | 111.37 ▲7.19 |
Media Library /wp-admin/upload.php | 1,849 ▲42 | 5.06 ▲0.01 | 152.72 ▲14.41 | 113.94 ▼12.16 |
Custom Post Type /wp-admin/admin.php?page=cptg-manage-cpt | 1,409 | 2.68 | 63.03 | 72.34 |
Custom Taxonomy /wp-admin/admin.php?page=cptg-manage-tax | 1,377 | 2.39 | 56.47 | 71.72 |
Add New /wp-admin/admin.php?page=cptg-regist-tax | 2,046 | 2.42 | 57.73 | 84.74 |
Add New /wp-admin/admin.php?page=cptg-regist-cpt | 2,229 | 2.41 | 61.64 | 87.81 |
Export /wp-admin/admin.php?page=cptg-export | 1,166 | 2.50 | 61.00 | 86.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- cptg_activation
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)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=cptg-export
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=cptg-export
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Almost there! Just fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-post-type-generator/include/regist_tax.php:13
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/custom-post-type-generator/include/export.php:14
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/custom-post-type-generator/include/manage_tax.php:21
- > PHP Notice
Trying to get property 'options' of non-object in wp-content/plugins/custom-post-type-generator/include/manage_tax.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-post-type-generator/include/regist_cpt.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-post-type-generator/custom-post-type-generator.php:17
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/custom-post-type-generator/include/manage_cpt.php:21
- > PHP Notice
Trying to get property 'options' of non-object in wp-content/plugins/custom-post-type-generator/include/export.php on line 9
- > PHP Notice
Trying to get property 'options' of non-object in wp-content/plugins/custom-post-type-generator/include/manage_cpt.php on line 14
- > 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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: custom post type, custom taxonomy
custom-post-type-generator/custom-post-type-generator.php 92% from 13 tests
Analyzing the main PHP file in "Custom Post Type Generator" version 2.4.2
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,224 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 229 | 50 | 1,750 |
PO File | 1 | 169 | 339 | 334 |
JavaScript | 1 | 21 | 8 | 100 |
CSS | 1 | 4 | 0 | 26 |
Markdown | 1 | 9 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 92.00 |
▷ Minimum class complexity | 92.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 5.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin