Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.07ms] Passed 4 tests
Server-side resources used by RunRepeat.com Rating Solution
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.57 ▲3.69 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.78 ▲2.79 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.20 ▲0.10 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.31 ▼15.56 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.07 ▲0.39 |
RunRepeat Solutions /wp-admin/tools.php?page=runrepeatcom-rating-solution/rr_rating_display.php | 3.23 | 32.12 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
RunRepeat.com Rating Solution: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.30 ▼0.91 | 2.01 ▲0.18 | 42.27 ▼2.70 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.03 | 111.55 ▲2.32 | 42.23 ▲0.11 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.04 ▲0.04 | 35.69 ▼7.11 | 32.86 ▼5.34 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.18 ▲4.86 | 664.05 ▼17.90 | 54.47 ▼5.43 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▼0.01 | 101.17 ▲0.96 | 45.62 ▲0.96 |
RunRepeat Solutions /wp-admin/tools.php?page=runrepeatcom-rating-solution/rr_rating_display.php | 810 | 2.01 | 25.86 | 33.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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)
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/runrepeatcom-rating-solution/rr_rating_display.php:83
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
4 plugin tags: running shoe reviews, reviews, widget, shortcode
runrepeatcom-rating-solution/rr_rating_display.php 92% from 13 tests
This is the main PHP file of "RunRepeat.com Rating Solution" version 1.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("runrepeatcom-rating-solution.php" instead of "rr_rating_display.php")
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
Success! There were no dangerous files found in this plugin114 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 9 | 88 |
JavaScript | 2 | 3 | 5 | 26 |
PHP code Passed 2 tests
An short overview of 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.24 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/rr_rating_sc.png | 0.73KB | 0.70KB | ▼ 3.35% |
img/screenshot-1.png | 29.42KB | 6.54KB | ▼ 77.75% |
img/screenshot-2.png | 6.92KB | 3.16KB | ▼ 54.37% |