Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.79MB] [CPU: ▲3.75ms] Passed 4 tests
An overview of server-side resources used by Five Star Restaurant Reviews
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.26 ▲0.80 | 46.05 ▲3.55 |
Dashboard /wp-admin | 4.09 ▲0.79 | 55.50 ▲4.41 |
Posts /wp-admin/edit.php | 4.15 ▲0.79 | 59.10 ▲9.95 |
Add New Post /wp-admin/post-new.php | 6.81 ▲0.93 | 97.15 ▼2.79 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 43.86 ▲9.84 |
Dashboard /wp-admin/admin.php?page=grfwp-dashboard | 3.99 | 40.20 |
Reviews /wp-admin/edit.php?post_type=grfwp-review | 4.06 | 43.89 |
About Us /wp-admin/admin.php?page=grfwp-about-us | 3.98 | 38.11 |
Settings /wp-admin/admin.php?page=grfwp-settings | 4.01 | 43.99 |
Server storage [IO: ▲2.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 191 new files
Database: no new tables, 9 new options
New WordPress options |
---|
grfwp-installation-time |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_grfwp_widget_reviews |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
grfwp-permission-level |
Browser metrics Passed 4 tests
A check of browser resources used by Five Star Restaurant Reviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲80 | 14.35 ▲0.09 | 1.64 ▼0.22 | 42.92 ▼1.90 |
Dashboard /wp-admin | 2,241 ▲61 | 5.64 ▲0.02 | 94.30 ▼9.90 | 39.77 ▼6.82 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 1.98 ▼0.04 | 36.31 ▼4.13 | 31.14 ▼8.96 |
Add New Post /wp-admin/post-new.php | 6,404 ▲4,869 | 27.71 ▲2.62 | 919.82 ▲248.43 | 36.96 ▼30.78 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.26 ▲0.09 | 102.96 ▼1.44 | 43.82 ▼1.47 |
Dashboard /wp-admin/admin.php?page=grfwp-dashboard | 1,179 | 1.96 | 31.90 | 70.22 |
Reviews /wp-admin/edit.php?post_type=grfwp-review | 1,215 | 2.38 | 38.27 | 35.01 |
About Us /wp-admin/admin.php?page=grfwp-about-us | 1,126 | 1.88 | 28.93 | 32.27 |
Settings /wp-admin/admin.php?page=grfwp-settings | 1,315 | 3.63 | 55.90 | 38.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- grfwp-permission-level
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_grfwp_widget_reviews
- grfwp-installation-time
- widget_recent-comments
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means 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 take a closer look at the following
- 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/good-reviews-wp/lib/simple-admin-pages/classes/AdminPageSetting.InfiniteTable.class.php:27
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/good-reviews-wp/lib/simple-admin-pages/classes/AdminPageSetting.Number.class.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/good-reviews-wp/includes/template-functions.php:35
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/good-reviews-wp/lib/simple-admin-pages/classes/AdminPageSetting.ColorPicker.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/good-reviews-wp/lib/simple-admin-pages/classes/AdminPageSetting.OpeningHours.class.php:28
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/good-reviews-wp/lib/simple-admin-pages/classes/AdminPageSetting.WarningTip.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/good-reviews-wp/lib/simple-admin-pages/classes/AdminPageSetting.Password.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/good-reviews-wp/lib/simple-admin-pages/classes/AdminPageSetting.SelectTaxonomy.class.php:22
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPage_2_6_13' not found in wp-content/plugins/good-reviews-wp/lib/simple-admin-pages/classes/AdminPage.Submenu.class.php:11
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/good-reviews-wp/lib/simple-admin-pages/classes/AdminPageSetting.SelectPost.class.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: There are too many tags (21 tag instead of maximum 10)
good-reviews-wp/good-reviews-wp.php Passed 13 tests
"Five Star Restaurant Reviews" version 2.3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
111 characters long description:
Restaurant reviews made easy. Add and display reviews on your restaurant site using SEO friendly schema markup.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected13,312 lines of code in 149 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 1,711 | 1,995 | 4,963 |
CSS | 22 | 315 | 225 | 4,867 |
JavaScript | 70 | 601 | 356 | 2,924 |
Markdown | 3 | 126 | 0 | 336 |
HTML | 1 | 13 | 0 | 118 |
PO File | 1 | 45 | 183 | 104 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 15.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 1 | 2.08% |
▷ Concrete classes | 47 | 97.92% |
▷ Final classes | 0 | 0.00% |
Methods | 228 | |
▷ Static methods | 6 | 2.63% |
▷ Public methods | 213 | 93.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 6.58% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
34 PNG files occupy 1.29MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/fivestartextlogo.png | 16.97KB | 7.38KB | ▼ 56.50% |
assets/css/jquery-ui/images/ui-icons_444444_256x240.png | 3.19KB | 3.49KB | 0.00% |
assets/css/jquery-ui/images/ui-icons_cc0000_256x240.png | 3.19KB | 3.49KB | 0.00% |
assets/img/premium-screenshots/styling1.png | 68.30KB | 19.02KB | ▼ 72.16% |
lib/simple-admin-pages/img/options-asset-info.png | 0.84KB | 0.42KB | ▼ 49.53% |