Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼12.11ms] Passed 4 tests
A check of server-side resources used by Link Post Type
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 50.00 ▲7.53 |
Dashboard /wp-admin | 3.34 ▼0.01 | 53.35 ▼16.39 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.80 ▼16.52 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.03 | 103.57 ▼11.08 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.41 ▼4.45 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=links | 3.26 | 38.21 |
Add New /wp-admin/post-new.php?post_type=links | 3.39 | 46.05 |
Links /wp-admin/edit.php?post_type=links | 3.31 | 39.93 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Link Post Type
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 14.38 ▲0.03 | 1.66 ▼0.11 | 45.43 ▼6.57 |
Dashboard /wp-admin | 2,223 ▲48 | 5.61 ▲0.02 | 85.92 ▼22.10 | 40.99 ▼5.93 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 1.98 ▼0.05 | 41.57 ▼2.08 | 36.12 ▼10.58 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.20 ▲0.02 | 633.36 ▼82.12 | 60.01 ▲1.17 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.12 ▼0.04 | 101.56 ▼14.09 | 43.84 ▼7.48 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=links | 1,347 | 2.12 | 28.44 | 30.95 |
Add New /wp-admin/post-new.php?post_type=links | 2,290 | 7.61 | 192.65 | 71.10 |
Links /wp-admin/edit.php?post_type=links | 1,100 | 1.97 | 32.72 | 29.44 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/link-post-type/link-post-type.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: custom, post type, tagging, link, meta box
link-post-type/link-post-type.php Passed 13 tests
The principal PHP file in "Link Post Type" v. 0.1 is loaded by WordPress automatically on each request
27 characters long description:
Custom post types for links
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
No dangerous file extensions were detected51 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 23 | 51 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin