Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.39MB] [CPU: ▲0.15ms] Passed 4 tests
Server-side resources used by Sophi
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 40.28 ▲1.37 |
Dashboard /wp-admin | 3.72 ▲0.42 | 45.90 ▼3.65 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 48.87 ▲4.81 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 94.74 ▼1.94 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 42.90 ▲5.42 |
Server storage [IO: ▲2.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 260 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sophi
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.20 ▼1.23 | 1.65 ▼0.48 | 38.46 ▼5.97 |
Dashboard /wp-admin | 2,203 ▲12 | 5.76 ▲0.88 | 97.41 ▼3.88 | 41.19 ▼1.74 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▲0.00 | 40.01 ▲3.47 | 35.90 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,528 ▲9 | 18.37 ▼4.85 | 638.21 ▼36.28 | 59.25 ▲8.63 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▼0.00 | 109.77 ▼1.41 | 44.92 ▼5.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/sophi/vendor/snowplow/snowplow-tracker/Worker.php
- > /wp-content/plugins/sophi/vendor/snowplow/snowplow-tracker/tests/bootstrap.php
- > /wp-content/plugins/sophi/includes/blocks/site-automation-block/markup.php
- 130× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Brick\\Math\\Internal\\Calculator' not found in wp-content/plugins/sophi/vendor/brick/math/src/Internal/Calculator/BcMathCalculator.php:16
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Collection\\AbstractCollection' not found in wp-content/plugins/sophi/vendor/ramsey/collection/src/AbstractSet.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Collection\\ArrayInterface' not found in wp-content/plugins/sophi/vendor/ramsey/collection/src/Map/MapInterface.php:27
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Collection\\AbstractArray' not found in wp-content/plugins/sophi/vendor/ramsey/collection/src/GenericArray.php:22
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Collection\\AbstractSet' not found in wp-content/plugins/sophi/vendor/ramsey/collection/src/Set.php:41
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Uuid\\Uuid' not found in wp-content/plugins/sophi/vendor/ramsey/uuid/src/Guid/Guid.php:51
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Exception\\UuidExceptionInterface' not found in wp-content/plugins/sophi/vendor/ramsey/uuid/src/Exception/DceSecurityException.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Builder\\UuidBuilderInterface' not found in wp-content/plugins/sophi/vendor/ramsey/uuid/src/Guid/GuidBuilder.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Generator\\RandomGeneratorInterface' not found in wp-content/plugins/sophi/vendor/ramsey/uuid/src/Generator/RandomLibAdapter.php:26
- > PHP Fatal error
Uncaught Error: Class 'Snowplow\\Tracker\\Emitters\\SyncEmitter' not found in wp-content/plugins/sophi/includes/classes/Emitter.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: curator, site automation, artifical intelligence, sophi, collector...
sophi/sophi.php 92% from 13 tests
The principal PHP file in "Sophi" v. 1.3.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
There were no executable files found in this plugin14,967 lines of code in 248 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 216 | 3,846 | 11,248 | 13,154 |
JSON | 5 | 0 | 0 | 749 |
JavaScript | 11 | 79 | 124 | 705 |
Markdown | 4 | 46 | 0 | 187 |
YAML | 4 | 21 | 0 | 109 |
Bourne Shell | 2 | 5 | 2 | 18 |
Dockerfile | 1 | 7 | 0 | 18 |
SVG | 1 | 0 | 0 | 14 |
CSS | 4 | 0 | 0 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 46 | |
Interfaces | 29 | |
Traits | 8 | |
Classes | 152 | |
▷ Abstract classes | 7 | 4.61% |
▷ Concrete classes | 145 | 95.39% |
▷ Final classes | 30 | 20.69% |
Methods | 1,128 | |
▷ Static methods | 93 | 8.24% |
▷ Public methods | 981 | 86.97% |
▷ Protected methods | 22 | 1.95% |
▷ Private methods | 125 | 11.08% |
Functions | 151 | |
▷ Named functions | 104 | 68.87% |
▷ Anonymous functions | 47 | 31.13% |
Constants | 132 | |
▷ Global constants | 6 | 4.55% |
▷ Class constants | 126 | 95.45% |
▷ Public constants | 111 | 88.10% |
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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/logo.png | 4.19KB | 4.16KB | ▼ 0.54% |