Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.15MB] [CPU: ▼12.01ms] Passed 4 tests
This is a short check of server-side resources used by Reporting API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 36.55 ▼3.03 |
Dashboard /wp-admin | 3.57 ▲0.27 | 47.06 ▲0.32 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 46.87 ▲2.93 |
Add New Post /wp-admin/post-new.php | 4.52 ▼1.37 | 41.29 ▼48.27 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 38.76 ▲6.24 |
Reporting API /wp-admin/tools.php?page=reporting_api_reports | 3.58 | 36.19 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 123 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_ra_reports |
wp_ra_report_logs |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Reporting API: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.22 ▼1.52 | 4.48 ▲2.63 | 41.37 ▲0.14 |
Dashboard /wp-admin | 2,254 ▲69 | 5.04 ▼0.96 | 105.93 ▲5.07 | 41.78 ▼0.42 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▼0.01 | 36.75 ▲1.19 | 35.17 ▲0.84 |
Add New Post /wp-admin/post-new.php | 1,516 ▼17 | 17.62 ▼5.79 | 614.65 ▼46.12 | 50.20 ▼10.57 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▼0.03 | 97.67 ▼2.40 | 41.36 ▼1.44 |
Reporting API /wp-admin/tools.php?page=reporting_api_reports | 1,036 | 1.85 | 24.58 | 31.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_ra_report_logs
- wp_ra_reports
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 91× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/reporting-api/reporting-api.php:36
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/reporting-api/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/reporting-api/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/reporting-api/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/reporting-api/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/reporting-api/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/reporting-api/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/reporting-api/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/reporting-api/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/reporting-api/src/Admin/Reports_List_Table.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 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
2 plugin tags: api, reporting
reporting-api/reporting-api.php Passed 13 tests
Analyzing the main PHP file in "Reporting API" version 0.1.1
76 characters long description:
WordPress plugin for receiving browser reports via a Reporting API endpoint.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,486 lines of code in 118 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 116 | 1,002 | 2,322 | 4,257 |
JSON | 2 | 0 | 0 | 229 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 4.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 110 | |
▷ Abstract classes | 1 | 0.91% |
▷ Concrete classes | 109 | 99.09% |
▷ Final classes | 0 | 0.00% |
Methods | 227 | |
▷ Static methods | 5 | 2.20% |
▷ Public methods | 144 | 63.44% |
▷ Protected methods | 75 | 33.04% |
▷ Private methods | 8 | 3.52% |
Functions | 27 | |
▷ Named functions | 6 | 22.22% |
▷ Anonymous functions | 21 | 77.78% |
Constants | 13 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 13 | 100.00% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin