Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼2.96ms] Passed 4 tests
This is a short check of server-side resources used by SWidget for Carnegie Museums of Pittsburgh
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 39.29 ▼6.89 |
Dashboard /wp-admin | 3.51 ▲0.21 | 47.71 ▼0.50 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 46.61 ▼1.16 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 86.47 ▼3.29 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 38.80 ▲3.54 |
SWidget for CMP /wp-admin/options-general.php?page=swidget | 3.41 | 39.50 |
Server storage [IO: ▲0.07MB] [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-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for SWidget for Carnegie Museums of Pittsburgh
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.45 ▼0.13 | 1.69 ▼0.54 | 38.35 ▼8.12 |
Dashboard /wp-admin | 2,207 ▲19 | 5.80 ▼0.01 | 100.31 ▼2.07 | 36.85 ▼4.18 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.18 ▲0.18 | 33.76 ▼9.02 | 35.00 ▼3.55 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 23.24 ▲4.87 | 673.10 ▲47.98 | 54.03 ▼7.00 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.13 ▼0.07 | 108.23 ▲4.36 | 47.99 ▲1.98 |
SWidget for CMP /wp-admin/options-general.php?page=swidget | 1,586 | 1.72 | 25.17 | 34.17 |
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
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function SWCMP\\add_action() in wp-content/plugins/swidget-for-cmp/settingsPage.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function SWCMP\\add_action() in wp-content/plugins/swidget-for-cmp/settingsPage.php:75
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
swidget-for-cmp/swidget-cmp.php 92% from 13 tests
The principal PHP file in "SWidget for Carnegie Museums of Pittsburgh" v. 1.11.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("swidget-for-cmp.php" instead of "swidget-cmp.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
Good job! No executable or dangerous file extensions detected1,276 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 250 | 552 | 1,276 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.33 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 40 | |
▷ Static methods | 1 | 2.50% |
▷ Public methods | 33 | 82.50% |
▷ Protected methods | 7 | 17.50% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 45 | 95.74% |
▷ Anonymous functions | 2 | 4.26% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin