Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼2.29ms] Passed 4 tests
A check of server-side resources used by Post Types Unlimited
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.40 | 43.27 ▲2.12 |
Dashboard /wp-admin | 3.71 ▲0.41 | 53.80 ▼13.72 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 51.43 ▲0.92 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.41 | 95.49 ▲1.54 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 43.59 ▲4.59 |
Post Types /wp-admin/edit.php?post_type=ptu | 3.68 | 38.85 |
Taxonomies /wp-admin/edit.php?post_type=ptu_tax | 3.68 | 38.59 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Post Types Unlimited
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.34 ▲0.06 | 1.66 ▼0.07 | 45.03 ▲2.09 |
Dashboard /wp-admin | 2,223 ▲46 | 5.63 ▲0.10 | 95.05 ▼5.95 | 43.31 ▲1.52 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.01 ▼0.02 | 37.40 ▼3.89 | 32.88 ▼6.69 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.06 ▲0.05 | 666.73 ▼19.78 | 69.36 ▲3.96 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.08 ▼0.14 | 112.54 ▲1.72 | 47.61 ▲1.49 |
Post Types /wp-admin/edit.php?post_type=ptu | 1,104 | 1.95 | 30.44 | 32.20 |
Taxonomies /wp-admin/edit.php?post_type=ptu_tax | 1,099 | 1.90 | 45.07 | 33.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in post-types-unlimited/assets to your readme.txt
post-types-unlimited/post-types-unlimited.php 92% from 13 tests
The primary PHP file in "Post Types Unlimited" version 1.2.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.2.0" instead of "5.7")
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 plugin2,323 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 308 | 516 | 1,919 |
Sass | 1 | 49 | 0 | 247 |
JavaScript | 1 | 24 | 10 | 140 |
JSON | 1 | 0 | 0 | 16 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 27.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 50 | |
▷ Static methods | 3 | 6.00% |
▷ Public methods | 34 | 68.00% |
▷ Protected methods | 16 | 32.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.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
There were not PNG files found in your plugin