Benchmarks
Plugin footprint 82% 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: ▲1.52ms] Passed 4 tests
A check of server-side resources used by Register Post Types and Taxonomies
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.75 ▲6.20 |
Dashboard /wp-admin | 3.43 ▲0.12 | 52.35 ▲0.22 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 53.91 ▲3.01 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 94.16 ▲0.63 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.85 ▲2.21 |
Register Taxonomies /wp-admin/plugins.php?page=register_taxonomies | 3.32 | 36.09 |
Register Post Types /wp-admin/plugins.php?page=register_post_types | 3.32 | 37.00 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/register-post-types-and-taxonomies/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Register Post Types and Taxonomies
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 13.27 ▼1.11 | 5.42 ▲3.64 | 43.66 ▼0.63 |
Dashboard /wp-admin | 2,232 ▲26 | 4.83 ▼0.07 | 102.60 ▼3.17 | 41.62 ▼3.92 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.01 ▼0.02 | 34.34 ▼2.09 | 37.76 ▲3.20 |
Add New Post /wp-admin/post-new.php | 1,532 ▲1 | 17.51 ▼5.54 | 683.22 ▲26.85 | 55.85 ▼4.36 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.23 ▲0.04 | 97.54 ▼7.44 | 41.52 ▼1.97 |
Register Taxonomies /wp-admin/plugins.php?page=register_taxonomies | 1,067 | 2.02 | 25.09 | 28.58 |
Register Post Types /wp-admin/plugins.php?page=register_post_types | 1,043 | 2.05 | 24.64 | 31.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/register-post-types-and-taxonomies/includes/admin/class-taxonomies-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/register-post-types-and-taxonomies/includes/admin/class-post-types-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/register-post-types-and-taxonomies/includes/admin/class-post-types-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/register-post-types-and-taxonomies/includes/admin/class-taxonomies-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/register-post-types-and-taxonomies/includes/admin/class-taxonomies-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/register-post-types-and-taxonomies/includes/admin/class-post-types-table.php on line 4
- > PHP Warning
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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: post-types, taxonomies, register, post-type, taxonomy
register-post-types-and-taxonomies/register-post-types-and-taxonomies.php Passed 13 tests
This is the main PHP file of "Register Post Types and Taxonomies" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
This plugin will help you register new post types and taxonomies. (Go to: Dashboard -> Plugins -> Register Post Types / Register Taxonomies)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin728 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 284 | 63 | 728 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 9 | 69.23% |
▷ Protected methods | 2 | 15.38% |
▷ Private methods | 2 | 15.38% |
Functions | 11 | |
▷ Named functions | 11 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin