Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼11.64ms] Passed 4 tests
An overview of server-side resources used by myCred – AnsPress (Gamify your Question and answer Sites)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.76 ▼1.96 |
Dashboard /wp-admin | 3.35 ▼0.00 | 47.00 ▼20.95 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.18 ▲2.55 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.42 ▼26.07 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.30 ▲2.44 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for myCred – AnsPress (Gamify your Question and answer Sites)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲38 | 14.32 ▲0.32 | 1.68 ▼0.08 | 39.17 ▼4.49 |
Dashboard /wp-admin | 2,205 ▲28 | 5.59 ▼0.05 | 93.03 ▼11.56 | 40.44 ▼1.45 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.03 ▲0.07 | 40.97 ▲1.53 | 38.75 ▲3.33 |
Add New Post /wp-admin/post-new.php | 1,536 ▲9 | 23.24 ▲0.39 | 678.85 ▲38.17 | 54.19 ▲4.11 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.20 ▲0.02 | 99.77 ▼4.75 | 41.58 ▼4.01 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mycred-anspress-integration/mycred-anspress-integration.php:136
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 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
5 plugin tags: quiz, achievement, ranks, anspress, mycred
mycred-anspress-integration/mycred-anspress-integration.php 85% from 13 tests
The entry point to "myCred – AnsPress (Gamify your Question and answer Sites)" version 1.1.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WP 4.8")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
Good job! No executable or dangerous file extensions detected1,031 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 263 | 546 | 1,017 |
CSS | 1 | 3 | 0 | 12 |
JavaScript | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.40 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 57 | |
▷ Static methods | 1 | 1.75% |
▷ Public methods | 54 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.26% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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 were not PNG files found in your plugin