Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.11ms] Passed 4 tests
Server-side resources used by AdSimple Vote
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.67 ▲3.04 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.54 ▼7.72 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.25 ▲2.36 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 82.26 ▼6.13 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.43 ▲4.64 |
Settings /wp-admin/edit.php?post_type=adsimplevote&page=adsimplevote_settings | 3.26 | 33.32 |
All votes /wp-admin/edit.php?post_type=adsimplevote | 3.34 | 36.76 |
Add New Vote /wp-admin/post-new.php?post_type=adsimplevote | 3.50 | 59.53 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_adsimplevote |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by AdSimple Vote
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲122 | 13.63 ▼1.05 | 1.74 ▲0.09 | 44.21 ▲3.17 |
Dashboard /wp-admin | 2,271 ▲83 | 5.81 ▼0.09 | 107.30 ▲4.16 | 38.82 ▼4.38 |
Posts /wp-admin/edit.php | 2,161 ▲72 | 2.04 ▲0.05 | 39.78 ▼0.63 | 34.71 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 17.83 ▼5.29 | 685.57 ▼60.33 | 70.98 ▲16.47 |
Media Library /wp-admin/upload.php | 1,457 ▲69 | 4.26 ▲0.08 | 104.09 ▼5.90 | 47.39 ▲1.08 |
Settings /wp-admin/edit.php?post_type=adsimplevote&page=adsimplevote_settings | 969 | 1.96 | 33.14 | 30.43 |
All votes /wp-admin/edit.php?post_type=adsimplevote | 1,152 | 2.24 | 34.91 | 30.57 |
Add New Vote /wp-admin/post-new.php?post_type=adsimplevote | 1,767 | 3.76 | 68.83 | 29.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_adsimplevote
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/adsimple-vote/adsimple-vote.php:1047
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=adsimplevote
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: wp.template is not a function" "TypeError: wp.template is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/adsimple-vote/js/admin.min.js?ver=1.0.1:1:209)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=adsimplevote
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: wp.template is not a function
- > GET request to /wp-admin/post-new.php?post_type=adsimplevote
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught Error: Template not found: #tmpl-adsimplevote-chart-values
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: umfragen, vote, statistik
adsimple-vote/adsimple-vote.php Passed 13 tests
The principal PHP file in "AdSimple Vote" v. 1.0.1 is loaded by WordPress automatically on each request
127 characters long description:
Let the users to vote with just one simple click. Create a question and get deep insights in the process. Listen your audience.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected4,783 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 518 | 1,745 | 2,755 |
CSS | 10 | 161 | 101 | 1,180 |
PHP | 2 | 205 | 403 | 733 |
PO File | 1 | 43 | 50 | 108 |
SVG | 1 | 0 | 0 | 6 |
Markdown | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 9 | 17.31% |
▷ Public methods | 49 | 94.23% |
▷ Protected methods | 2 | 3.85% |
▷ Private methods | 1 | 1.92% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin