Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.16ms] Passed 4 tests
An overview of server-side resources used by myCred for GD Star Rating
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.58 ▼4.58 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.75 ▼3.32 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.11 ▲0.14 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.37 ▼8.89 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.53 ▲7.97 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for myCred for GD Star Rating
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.28 ▲0.00 | 1.78 ▼0.26 | 35.93 ▼8.93 |
Dashboard /wp-admin | 2,198 ▲18 | 5.63 ▲0.01 | 99.56 ▼2.43 | 44.43 ▼2.21 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 40.10 ▲2.84 | 35.86 ▼4.67 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.42 ▲0.18 | 627.95 ▼5.62 | 48.36 ▼4.58 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▲0.00 | 100.56 ▼2.80 | 41.31 ▼4.57 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
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 plugin_basename() in wp-content/plugins/mycred-for-gd-star-rating/mycred-gd-star-rating.php:90
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: mycred, stars, rating, gd rating, star rating
mycred-for-gd-star-rating/mycred-gd-star-rating.php 77% from 13 tests
This is the main PHP file of "myCred for GD Star Rating" version 1.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mycred-for-gd-star-rating.php" instead of "mycred-gd-star-rating.php")
- Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WP 4.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin358 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 70 | 106 | 306 |
PO File | 1 | 14 | 14 | 52 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.25% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin