Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼5.34ms] Passed 4 tests
Analyzing server-side resources used by Restricted Site Access
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 42.28 ▲1.10 |
Dashboard /wp-admin | 3.76 ▲0.41 | 48.85 ▼13.43 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 49.62 ▲5.01 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.39 | 83.65 ▼11.12 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 36.56 ▲2.09 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 141 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Restricted Site Access
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.31 ▲0.15 | 1.83 ▲0.11 | 46.81 ▲2.65 |
Dashboard /wp-admin | 2,195 ▲20 | 5.66 ▲0.02 | 91.65 ▼31.39 | 37.79 ▼8.96 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.03 | 40.41 ▲0.80 | 36.78 ▲4.63 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 25.10 ▲1.84 | 607.11 ▼83.86 | 69.51 ▲12.70 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.16 ▼0.01 | 99.42 ▼3.12 | 44.86 ▼1.22 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 103× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/restricted-site-access/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:14
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/restricted-site-access/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/restricted-site-access/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/restricted-site-access/restricted_site_access.php:2098
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/restricted-site-access/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/restricted-site-access/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/restricted-site-access/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/restricted-site-access/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/restricted-site-access/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/restricted-site-access/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php:5
- > 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 90% 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:
- Screenshots: These screenshots lack descriptions #2, #3 in restricted-site-access/assets to your readme.txt
restricted-site-access/restricted_site_access.php 85% from 13 tests
The entry point to "Restricted Site Access" version 7.4.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 416 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("restricted-site-access.php" instead of "restricted_site_access.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin6,672 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 1,257 | 3,464 | 6,101 |
JavaScript | 4 | 41 | 20 | 280 |
JSON | 1 | 0 | 0 | 268 |
Bourne Shell | 1 | 5 | 4 | 13 |
CSS | 1 | 2 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 7.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 256.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 117 | |
▷ Abstract classes | 2 | 1.71% |
▷ Concrete classes | 115 | 98.29% |
▷ Final classes | 0 | 0.00% |
Methods | 385 | |
▷ Static methods | 115 | 29.87% |
▷ Public methods | 313 | 81.30% |
▷ Protected methods | 45 | 11.69% |
▷ Private methods | 27 | 7.01% |
Functions | 19 | |
▷ Named functions | 2 | 10.53% |
▷ Anonymous functions | 17 | 89.47% |
Constants | 26 | |
▷ Global constants | 2 | 7.69% |
▷ Class constants | 24 | 92.31% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin