Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼0.14ms] Passed 4 tests
Server-side resources used by PageViews Counter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 43.59 ▼5.88 |
Dashboard /wp-admin | 3.79 ▲0.49 | 52.79 ▲0.24 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 57.75 ▲3.75 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 96.08 ▲1.32 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 41.99 ▲5.58 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 251 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by PageViews Counter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▼11 | 14.48 ▲1.26 | 1.73 ▼0.25 | 40.25 ▼5.19 |
Dashboard /wp-admin | 2,206 ▼0 | 4.85 ▼0.04 | 105.67 ▲0.97 | 42.27 ▲4.37 |
Posts /wp-admin/edit.php | 2,099 ▲31 | 2.00 ▼0.01 | 41.19 ▲6.69 | 36.29 ▲3.68 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.31 ▼0.03 | 638.36 ▼41.74 | 54.66 ▲7.31 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.28 ▲0.09 | 93.74 ▼8.68 | 41.74 ▼4.31 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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
Even though no errors were found, 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
The following issues need your attention
- 134× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Cache\\CacheException' not found in wp-content/plugins/pageviews-counter/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Exceptions/PhpfastcacheExceptionInterface.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Phpfastcache\\Core\\Pool\\ExtendedCacheItemPoolInterface' not found in wp-content/plugins/pageviews-counter/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Couchbase/Driver.php:35
- > PHP Fatal error
Uncaught Error: Class 'Phpfastcache\\Exceptions\\PhpfastcacheRootException' not found in wp-content/plugins/pageviews-counter/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Exceptions/PhpfastcacheUnsupportedOperationException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheInterface' not found in wp-content/plugins/pageviews-counter/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Helper/Psr16Adapter.php:30
- > PHP Fatal error
Uncaught Error: Interface 'Phpfastcache\\Core\\Item\\ExtendedCacheItemInterface' not found in wp-content/plugins/pageviews-counter/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Cassandra/Item.php:30
- > PHP Fatal error
Uncaught Error: Class 'Phpfastcache\\Config\\ConfigurationOption' not found in wp-content/plugins/pageviews-counter/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Devtrue/Config.php:21
- > PHP Fatal error
Trait 'Latte\\Strict' not found in wp-content/plugins/pageviews-counter/vendor/latte/latte/src/Latte/Compiler/Token.php on line 16
- > PHP Fatal error
Uncaught Error: Interface 'Latte\\Loader' not found in wp-content/plugins/pageviews-counter/vendor/latte/latte/src/Latte/Loaders/StringLoader.php:18
- > PHP Fatal error
Trait 'Phpfastcache\\Core\\Item\\ItemExtendedTrait' not found in wp-content/plugins/pageviews-counter/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Core/Item/ItemBaseTrait.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'Phpfastcache\\Exceptions\\PhpfastcacheRootException' not found in wp-content/plugins/pageviews-counter/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Exceptions/PhpfastcacheDriverException.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
These attributes need your attention:
- Donate link: Invalid url: ""
pageviews-counter/pageviews-counter.php Passed 13 tests
Analyzing the main PHP file in "PageViews Counter" version 2.0.0
30 characters long description:
Lightweight pageviews counter.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
These items require your attention
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/pageviews-counter/vendor/bin/latte-lint.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 197 | 4,039 | 9,380 | 16,028 |
Markdown | 18 | 390 | 0 | 1,449 |
JSON | 9 | 0 | 0 | 562 |
YAML | 2 | 15 | 0 | 64 |
XML | 1 | 1 | 1 | 7 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 12.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 225.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 52 | |
Interfaces | 28 | |
Traits | 11 | |
Classes | 151 | |
▷ Abstract classes | 2 | 1.32% |
▷ Concrete classes | 149 | 98.68% |
▷ Final classes | 2 | 1.34% |
Methods | 1,281 | |
▷ Static methods | 148 | 11.55% |
▷ Public methods | 1,062 | 82.90% |
▷ Protected methods | 168 | 13.11% |
▷ Private methods | 51 | 3.98% |
Functions | 64 | |
▷ Named functions | 3 | 4.69% |
▷ Anonymous functions | 61 | 95.31% |
Constants | 50 | |
▷ Global constants | 4 | 8.00% |
▷ Class constants | 46 | 92.00% |
▷ Public constants | 44 | 95.65% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin