Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.62MB] [CPU: ▼15.85ms] Passed 4 tests
Analyzing server-side resources used by Post Category Advanced
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 44.08 ▲2.87 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.74 ▼2.66 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 53.38 ▼2.97 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.67 | 40.56 ▼60.63 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.44 ▲3.44 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Post Category Advanced: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲119 | 13.41 ▼1.32 | 8.72 ▲6.91 | 43.31 ▲0.69 |
Dashboard /wp-admin | 2,229 ▲52 | 5.57 ▼0.09 | 90.76 ▲1.69 | 42.78 ▲0.21 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.04 ▲0.02 | 39.84 ▼2.15 | 34.39 ▼8.36 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.55 ▲0.49 | 683.19 ▼4.54 | 50.62 ▼2.93 |
Media Library /wp-admin/upload.php | 1,437 ▲40 | 4.17 ▼0.04 | 101.83 ▼4.31 | 48.35 ▲1.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/post-category-advanced/public/partials/post-category-advanced-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/post-category-advanced/admin/partials/post-category-advanced-admin-display.php:19
- > PHP Warning
Use of undefined constant PCADV_VERSION - assumed 'PCADV_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-category-advanced/admin/partials/post-category-advanced-admin-display.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== post-category-advanced ===
)
post-category-advanced/post-category-advanced.php Passed 13 tests
Analyzing the main PHP file in "Post Category Advanced" version 1.0.1
64 characters long description:
Create relationships between post categories and tags, and more.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin681 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 171 | 585 | 543 |
CSS | 2 | 10 | 9 | 128 |
JavaScript | 2 | 3 | 29 | 6 |
SVG | 1 | 0 | 0 | 4 |
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.35 |
Average class complexity | 4.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 17.34KB | 7.66KB | ▼ 55.84% |
assets/banner-772x250-rtl.png | 17.34KB | 7.66KB | ▼ 55.84% |
assets/icon-128x128.png | 1.96KB | 1.05KB | ▼ 46.46% |
assets/banner-1544x500-rtl.png | 38.43KB | 16.05KB | ▼ 58.25% |
images/all-wp-logo.png | 7.87KB | 3.42KB | ▼ 56.53% |