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.04MB] [CPU: ▼5.02ms] Passed 4 tests
Analyzing server-side resources used by myCred for TotalPoll
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 36.37 ▼6.15 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.86 ▼6.68 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.24 ▲2.00 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.47 ▼5.60 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.43 ▼1.66 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for myCred for TotalPoll
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.15 ▼0.07 | 1.68 ▲0.10 | 40.59 ▼5.66 |
Dashboard /wp-admin | 2,195 ▲15 | 5.58 ▼0.07 | 91.34 ▲3.78 | 43.49 ▲5.02 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▼0.02 | 39.21 ▲3.72 | 34.99 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,535 ▼0 | 25.44 ▲0.58 | 604.87 ▼10.44 | 63.93 ▲2.64 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.18 ▲0.01 | 94.99 ▼4.17 | 42.44 ▼1.29 |
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
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mycred-for-totalpoll/mycred-totalpoll.php:90
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 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
5 plugin tags: contest, mycred, total poll, polls, poll
mycred-for-totalpoll/mycred-totalpoll.php 77% from 13 tests
The main PHP script in "myCred for TotalPoll" version 1.0.8 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("mycred-for-totalpoll.php" instead of "mycred-totalpoll.php")
- Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "WP 4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin246 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 62 | 121 | 182 |
PO File | 2 | 18 | 18 | 64 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
There are no PNG files in this plugin