Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.40ms] Passed 4 tests
Analyzing server-side resources used by GR Progress Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.28 ▼9.01 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.40 ▼4.48 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.19 ▼1.27 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.28 ▼6.82 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.40 ▲2.46 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_gr_progress_cvdm_widget |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by GR Progress Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.28 ▼0.09 | 1.69 ▼0.03 | 43.63 ▲1.03 |
Dashboard /wp-admin | 2,200 ▲23 | 5.69 ▲0.02 | 87.41 ▼10.26 | 39.50 ▼4.87 |
Posts /wp-admin/edit.php | 2,102 ▲5 | 2.01 ▼0.00 | 34.60 ▼0.28 | 35.00 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,528 ▼13 | 23.05 ▼0.03 | 682.32 ▲26.42 | 63.84 ▲5.85 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.21 ▼0.03 | 121.88 ▲15.10 | 47.62 ▲0.99 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_gr_progress_cvdm_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gr-progress/gr-progress-widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gr-progress/gr-progress-widget.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: reading, reading lists, books, goodreads
gr-progress/gr-progress.php Passed 13 tests
The entry point to "GR Progress Widget" version 1.5.5 is a PHP file that has certain tags in its header comment area
53 characters long description:
Displays shelves and reading progress from Goodreads.
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 detected2,326 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 344 | 292 | 2,209 |
CSS | 1 | 4 | 6 | 117 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 46.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 2 | 22.22% |
▷ Concrete classes | 7 | 77.78% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 6 | 4.08% |
▷ Public methods | 98 | 66.67% |
▷ Protected methods | 16 | 10.88% |
▷ Private methods | 33 | 22.45% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 21 | 80.77% |
▷ Class constants | 5 | 19.23% |
▷ Public constants | 5 | 100.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
No PNG files were detected