Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.35ms] Passed 4 tests
An overview of server-side resources used by Socius Marketing Page Taxonomy
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 46.70 ▲8.72 |
Dashboard /wp-admin | 3.49 ▲0.15 | 59.73 ▼0.16 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 47.53 ▲2.96 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 85.42 ▼11.38 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.36 ▲3.17 |
Custom Taxonomy /wp-admin/options-general.php?page=smct-options | 3.38 | 35.26 |
Custom Categories /wp-admin/edit-tags.php?taxonomy=smct_cats&post_type=page | 3.40 | 37.53 |
Areas Served /wp-admin/edit-tags.php?taxonomy=smct_areas&post_type=page | 3.40 | 33.80 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 12 new options
New WordPress options |
---|
smct_area_page_id |
widget_theysaidso_widget |
widget_recent-posts |
smct_category_page_id |
widget_recent-comments |
smct_category_page_title |
smct_category_page_name |
db_upgraded |
smct_area_page_name |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Socius Marketing Page Taxonomy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲111 | 14.14 ▼0.21 | 1.72 ▲0.16 | 48.13 ▲11.82 |
Dashboard /wp-admin | 2,260 ▲79 | 5.68 ▲0.00 | 95.22 ▼1.67 | 44.43 ▲0.94 |
Posts /wp-admin/edit.php | 2,116 ▲34 | 2.01 ▼0.01 | 32.95 ▼2.35 | 34.57 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,542 ▲6 | 23.11 ▼0.16 | 664.35 ▲33.87 | 55.99 ▲3.62 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.18 ▼0.03 | 94.89 ▼13.35 | 43.31 ▼3.83 |
Custom Taxonomy /wp-admin/options-general.php?page=smct-options | 958 | 2.05 | 22.73 | 30.29 |
Custom Categories /wp-admin/edit-tags.php?taxonomy=smct_cats&post_type=page | 1,293 | 2.12 | 27.63 | 29.29 |
Areas Served /wp-admin/edit-tags.php?taxonomy=smct_areas&post_type=page | 1,293 | 2.12 | 26.71 | 27.83 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/socius-marketing-page-taxonomy/inc/template-archive.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/socius-marketing-page-taxonomy/inc/options-page.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/socius-marketing-page-taxonomy/socius-marketing-page-taxonomy.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/socius-marketing-page-taxonomy/inc/taxonomies.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/socius-marketing-page-taxonomy/inc/archive-pages.php:144
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: taxonomies, categories, locations, pages, taxonomy...
socius-marketing-page-taxonomy/socius-marketing-page-taxonomy.php Passed 13 tests
The entry point to "Socius Marketing Page Taxonomy" version 1.1.14 is a PHP file that has certain tags in its header comment area
115 characters long description:
Adds custom taxonomies for product categories and areas served. Be sure to update your permalinks after activation.
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
Success! There were no dangerous files found in this plugin1,362 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 140 | 76 | 1,014 |
CSS | 4 | 11 | 3 | 245 |
SVG | 2 | 0 | 0 | 103 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 5.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin