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.12MB] [CPU: ▼6.93ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Document Automation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 35.17 ▼7.26 |
Dashboard /wp-admin | 3.43 ▲0.09 | 46.79 ▼13.45 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 45.66 ▲1.52 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 89.22 ▼6.60 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.22 ▼0.40 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Document Automation
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.22 ▼1.07 | 4.65 ▲2.75 | 41.08 ▼4.40 |
Dashboard /wp-admin | 2,221 ▲33 | 4.83 ▼0.06 | 99.36 ▼11.12 | 38.19 ▼4.60 |
Posts /wp-admin/edit.php | 2,104 ▲18 | 2.05 ▲0.04 | 40.78 ▲3.46 | 34.73 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 18.47 ▼4.64 | 603.89 ▼26.66 | 52.79 ▼1.12 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.28 ▲0.00 | 95.88 ▼9.02 | 43.62 ▼1.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
Please fix the following
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Pimple\\ServiceProviderInterface' not found in wp-content/plugins/wp-document-automation/vendor/pimple/pimple/src/Pimple/Tests/Fixtures/PimpleServiceProvider.php:32
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-document-automation/vendor/pimple/pimple/src/Pimple/Tests/Psr11/ServiceLocatorTest.php:39
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/wp-document-automation/vendor/pimple/pimple/src/Pimple/Exception/ExpectedInvokableException.php:36
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/wp-document-automation/vendor/pimple/pimple/src/Pimple/Psr11/ServiceLocator.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/wp-document-automation/views/admin/settings/document-automation.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/wp-document-automation/vendor/pimple/pimple/src/Pimple/Exception/FrozenServiceException.php:36
- > PHP Fatal error
Uncaught Error: Class 'Pimple\\Container' not found in wp-content/plugins/wp-document-automation/src/Loader.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/wp-document-automation/vendor/pimple/pimple/src/Pimple/Psr11/Container.php:37
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-document-automation/vendor/pimple/pimple/src/Pimple/Tests/PimpleTest.php:34
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/wp-document-automation/vendor/psr/container/src/NotFoundExceptionInterface.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Requires php: Version not formatted correctly
wp-document-automation/wp-document-automation.php 92% from 13 tests
The principal PHP file in "WordPress Document Automation" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected7,536 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 6 | 3 | 0 | 3,838 |
PHP | 58 | 503 | 1,050 | 2,238 |
C | 1 | 188 | 47 | 879 |
JSON | 5 | 0 | 0 | 245 |
C/C++ Header | 2 | 40 | 46 | 132 |
reStructuredText | 1 | 94 | 135 | 97 |
m4 | 1 | 11 | 11 | 41 |
YAML | 1 | 5 | 0 | 35 |
Markdown | 3 | 22 | 0 | 31 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 2 | 7.14% |
Methods | 146 | |
▷ Static methods | 4 | 2.74% |
▷ Public methods | 143 | 97.95% |
▷ Protected methods | 2 | 1.37% |
▷ Private methods | 1 | 0.68% |
Functions | 61 | |
▷ Named functions | 1 | 1.64% |
▷ Anonymous functions | 60 | 98.36% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin