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.00MB] [CPU: ▼9.83ms] Passed 4 tests
This is a short check of server-side resources used by Add Category to Pages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.20 ▲1.81 |
Dashboard /wp-admin | 3.31 ▼0.03 | 50.36 ▼19.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.25 ▼2.32 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.88 ▼17.16 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.99 ▼0.49 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page | 3.23 | 33.27 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page | 3.23 | 38.91 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
category_children |
widget_recent-comments |
Browser metrics Passed 4 tests
Add Category to Pages: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.17 ▼0.18 | 1.61 ▲0.15 | 43.49 ▲3.54 |
Dashboard /wp-admin | 2,203 ▲26 | 5.59 ▼0.07 | 84.90 ▼2.80 | 38.07 ▼1.14 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.97 ▼0.01 | 37.65 ▲2.01 | 31.74 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.62 ▲0.63 | 623.70 ▼2.71 | 62.37 ▼5.80 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.33 ▲0.15 | 105.92 ▲6.81 | 41.81 ▲1.23 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page | 1,327 | 2.11 | 28.42 | 30.63 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page | 1,463 | 2.12 | 32.43 | 36.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- category_children
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-category-to-pages/add-category-to-page.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Screenshot #1 (Page Edit Screen) image not found
add-category-to-pages/add-category-to-page.php 92% from 13 tests
The principal PHP file in "Add Category to Pages" v. 1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("add-category-to-pages.php" instead of "add-category-to-page.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin17 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 9 | 17 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 1.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin