Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.88MB] [CPU: ▲5.96ms] Passed 4 tests
This is a short check of server-side resources used by Reuse Builder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.26 ▲1.80 | 55.54 ▲10.38 |
Dashboard /wp-admin | 5.59 ▲2.25 | 69.45 ▲3.69 |
Posts /wp-admin/edit.php | 5.20 ▲1.84 | 70.08 ▲15.75 |
Add New Post /wp-admin/post-new.php | 7.95 ▲2.06 | 104.87 ▲0.58 |
Media Library /wp-admin/upload.php | 5.05 ▲1.82 | 46.79 ▲9.17 |
Post Types /wp-admin/edit.php?post_type=reuseb_post_type | 5.11 | 50.52 |
Settings /wp-admin/admin.php?page=reuse_builder_settings | 5.77 | 60.43 |
Taxonomies /wp-admin/edit.php?post_type=reuseb_taxonomy | 5.11 | 46.21 |
Builder /wp-admin/admin.php?page=reuse_builder | 5.47 | 50.20 |
Templates /wp-admin/edit.php?post_type=reuseb_template | 5.11 | 49.79 |
Term Metaboxes /wp-admin/edit.php?post_type=reuseb_term_metabox | 5.11 | 50.92 |
Metaboxes /wp-admin/edit.php?post_type=reuseb_metabox | 5.11 | 53.54 |
Server storage [IO: ▲64.42MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- Total filesystem usage must be limited to 25MB (currently using 64.42MB)
Filesystem: 413 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
reactive_builder_admin_notices |
webpack_public_path_url |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Reuse Builder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,075 ▲314 | 24.84 ▲10.28 | 1.73 ▲0.16 | 43.44 ▲0.85 |
Dashboard /wp-admin | 2,477 ▲300 | 15.75 ▲10.19 | 325.70 ▲238.50 | 45.64 ▲5.18 |
Posts /wp-admin/edit.php | 2,384 ▲281 | 5.24 ▲3.26 | 84.82 ▲40.28 | 34.25 ▼13.00 |
Add New Post /wp-admin/post-new.php | 1,650 ▲113 | 33.02 ▲14.96 | 841.78 ▲182.02 | 36.28 ▼31.30 |
Media Library /wp-admin/upload.php | 1,524 ▲121 | 6.63 ▲2.42 | 102.69 ▲4.15 | 44.07 ▲1.93 |
Post Types /wp-admin/edit.php?post_type=reuseb_post_type | 1,354 | 5.37 | 75.77 | 29.82 |
Settings /wp-admin/admin.php?page=reuse_builder_settings | 1,218 | 19.11 | 302.60 | 28.51 |
Taxonomies /wp-admin/edit.php?post_type=reuseb_taxonomy | 1,351 | 5.23 | 82.73 | 31.56 |
Builder /wp-admin/admin.php?page=reuse_builder | 1,135 | 17.43 | 203.15 | 28.32 |
Templates /wp-admin/edit.php?post_type=reuseb_template | 1,345 | 5.28 | 67.70 | 28.05 |
Term Metaboxes /wp-admin/edit.php?post_type=reuseb_term_metabox | 1,348 | 5.21 | 68.95 | 29.29 |
Metaboxes /wp-admin/edit.php?post_type=reuseb_metabox | 1,348 | 5.22 | 68.63 | 31.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- can_compress_scripts
- webpack_public_path_url
- db_upgraded
- widget_theysaidso_widget
- reactive_builder_admin_notices
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/reuse-builder/admin-templates/form/condition-builder.php
- 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_type() in wp-content/plugins/reuse-builder/templates/content-single-reuse-page.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/reuse-builder/admin-templates/form/metabox-builder.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_localize_script() in wp-content/plugins/reuse-builder/admin-templates/form/builder.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_type() in wp-content/plugins/reuse-builder/templates/content-archive-reuse-page.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/reuse-builder/admin-templates/form/metabox-preview.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/reuse-builder/admin-templates/form/metabox-preview.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/reuse-builder/admin-templates/listing.php:1
- > PHP Notice
Undefined variable: template in wp-content/plugins/reuse-builder/admin-templates/form/metabox-preview.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Reuse\\Builder\\Provider' not found in wp-content/plugins/reuse-builder/admin-templates/geo-metabox-preview.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_localize_script() in wp-content/plugins/reuse-builder/admin-templates/form/taxonomy-builder.php:6
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: builder, templates, term metabox, generator, taxonomy...
reuse-builder/reuse-builder.php Passed 13 tests
The principal PHP file in "Reuse Builder" v. 1.7 is loaded by WordPress automatically on each request
82 characters long description:
A Simple but powerful Post Type, Metabox, Taxonomy, Term meta and Template builder
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin38,619 lines of code in 389 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 272 | 2,834 | 2,087 | 12,615 |
CSS | 13 | 97 | 241 | 9,359 |
PHP | 59 | 649 | 787 | 6,017 |
SVG | 5 | 0 | 9 | 5,878 |
LESS | 31 | 534 | 267 | 4,361 |
JSON | 5 | 0 | 0 | 281 |
HTML | 1 | 13 | 43 | 60 |
XML | 1 | 3 | 0 | 28 |
YAML | 1 | 5 | 0 | 16 |
Markdown | 1 | 2 | 0 | 4 |
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.36 |
Average class complexity | 12.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 1 | 4.00% |
▷ Concrete classes | 24 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 112 | |
▷ Static methods | 21 | 18.75% |
▷ Public methods | 111 | 99.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.89% |
Functions | 30 | |
▷ Named functions | 21 | 70.00% |
▷ Anonymous functions | 9 | 30.00% |
Constants | 15 | |
▷ Global constants | 13 | 86.67% |
▷ Class constants | 2 | 13.33% |
▷ Public constants | 2 | 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 are no PNG files in this plugin