Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲0.63ms] Passed 4 tests
This is a short check of server-side resources used by PT Theme Addon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 48.68 ▲1.66 |
Dashboard /wp-admin | 3.46 ▲0.15 | 52.68 ▲5.64 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 51.81 ▲1.38 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 88.10 ▼3.79 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 39.37 ▲3.26 |
Add New /wp-admin/post-new.php?post_type=ptta-clients | 3.44 | 48.28 |
Categories /wp-admin/edit-tags.php?taxonomy=ptta-portfolio-categories&post_type=ptta-portfolio | 3.37 | 35.83 |
Categories /wp-admin/edit-tags.php?taxonomy=ptta-team-categories&post_type=ptta-team | 3.37 | 37.94 |
All Items /wp-admin/edit.php?post_type=ptta-portfolio | 3.42 | 35.97 |
Add New /wp-admin/post-new.php?post_type=ptta-testimonials | 3.50 | 46.76 |
Categories /wp-admin/edit-tags.php?taxonomy=ptta-testimonials-categories&post_type=ptta-testimonials | 3.37 | 44.55 |
Add New /wp-admin/post-new.php?post_type=ptta-portfolio | 3.50 | 57.14 |
All Items /wp-admin/edit.php?post_type=ptta-team | 3.42 | 40.73 |
All Items /wp-admin/edit.php?post_type=ptta-testimonials | 3.42 | 32.39 |
Add New /wp-admin/post-new.php?post_type=ptta-team | 3.46 | 50.50 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_pt-theme-addon-testimonials |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_pt-theme-addon-portfolio |
db_upgraded |
widget_pt-theme-addon-our-team |
widget_pt-theme-addon-clients |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for PT Theme Addon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,033 ▲272 | 13.39 ▼0.96 | 9.87 ▲8.02 | 43.62 ▼2.02 |
Dashboard /wp-admin | 2,318 ▲138 | 5.66 ▼0.04 | 85.51 ▼3.89 | 42.17 ▲3.66 |
Posts /wp-admin/edit.php | 2,220 ▲120 | 2.03 ▲0.08 | 35.01 ▼5.73 | 36.61 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,627 ▲99 | 23.05 ▼0.20 | 710.88 ▲100.05 | 52.72 ▼1.63 |
Media Library /wp-admin/upload.php | 1,520 ▲120 | 4.10 ▼0.08 | 110.68 ▲9.92 | 46.49 ▲0.39 |
Add New /wp-admin/post-new.php?post_type=ptta-clients | 1,767 | 3.61 | 65.36 | 34.75 |
Categories /wp-admin/edit-tags.php?taxonomy=ptta-portfolio-categories&post_type=ptta-portfolio | 1,394 | 2.12 | 29.86 | 29.15 |
Categories /wp-admin/edit-tags.php?taxonomy=ptta-team-categories&post_type=ptta-team | 1,397 | 2.12 | 27.33 | 34.18 |
All Items /wp-admin/edit.php?post_type=ptta-portfolio | 1,198 | 1.91 | 31.30 | 31.46 |
Add New /wp-admin/post-new.php?post_type=ptta-testimonials | 2,438 | 7.63 | 174.58 | 65.20 |
Categories /wp-admin/edit-tags.php?taxonomy=ptta-testimonials-categories&post_type=ptta-testimonials | 1,391 | 2.12 | 26.35 | 31.04 |
Add New /wp-admin/post-new.php?post_type=ptta-portfolio | 2,473 | 7.65 | 166.21 | 56.40 |
All Items /wp-admin/edit.php?post_type=ptta-team | 1,192 | 1.96 | 30.84 | 33.11 |
All Items /wp-admin/edit.php?post_type=ptta-testimonials | 1,192 | 1.90 | 29.33 | 28.42 |
Add New /wp-admin/post-new.php?post_type=ptta-team | 1,968 | 3.55 | 64.31 | 33.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 10 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_pt-theme-addon-clients
- widget_pt-theme-addon-testimonials
- widget_recent-posts
- widget_pt-theme-addon-our-team
- db_upgraded
- widget_theysaidso_widget
- widget_pt-theme-addon-portfolio
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=ptta-team-categories&post_type=ptta-team
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
Please take a closer look at the following
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pt-theme-addon/testimonials/testimonials.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pt-theme-addon/team/team-widget.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pt-theme-addon/clients/clients.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pt-theme-addon/team/team.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pt-theme-addon/testimonials/testimonials-widget.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pt-theme-addon/portfolio/portfolio.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pt-theme-addon/portfolio/portfolio-widget.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pt-theme-addon/clients/clients-widget.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: custom post type, metaboxes, extension, widget, theme addon...
pt-theme-addon/pt-theme-addon.php 92% from 13 tests
The main PHP script in "PT Theme Addon" version 1.0.4 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 221 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected6,950 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 121 | 32 | 2,765 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 10 | 573 | 110 | 1,475 |
JavaScript | 2 | 8 | 11 | 39 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 17.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected