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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.71ms] Passed 4 tests
An overview of server-side resources used by Sagenda - Scheduling List - LEGACY
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.16 ▼1.84 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.28 ▼6.47 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.72 ▼5.20 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.41 ▼9.33 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.65 ▼1.62 |
Sagenda /wp-admin/options-general.php?page=Sagenda | 3.50 | 31.24 |
Server storage [IO: ▲5.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,479 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Sagenda - Scheduling List - LEGACY
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,197 ▲462 | 14.38 ▼0.06 | 24.55 ▲22.82 | 38.18 ▼4.81 |
Dashboard /wp-admin | 2,222 ▲30 | 5.85 ▲0.90 | 97.62 ▼9.66 | 38.68 ▼8.67 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.04 ▲0.01 | 40.36 ▼2.86 | 37.14 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,550 ▲36 | 23.16 ▲5.44 | 661.34 ▼10.09 | 64.76 ▲7.48 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.22 ▼0.08 | 96.22 ▼0.99 | 42.24 ▼1.03 |
Sagenda /wp-admin/options-general.php?page=Sagenda | 863 | 2.05 | 25.42 | 29.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=Sagenda
- > User deprecated in wp-content/plugins/sagenda/assets/vendor/twig/lib/Twig/Autoloader.php+12
The Twig_Autoloader class is deprecated since version 1.21 and will be removed in 2.0. Use Composer instead.
- > GET request to /wp-admin/options-general.php?page=Sagenda
- > User deprecated in wp-content/plugins/sagenda/assets/vendor/twig/lib/Twig/Autoloader.php+30
Using Twig_Autoloader is deprecated since version 1.21. Use Composer instead.
- > GET request to /wp-admin/options-general.php?page=Sagenda
- > Notice in wp-content/plugins/sagenda/webservices/SagendaAPI.php+52
Undefined property: stdClass::$Message
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sagenda/controllers/CalendarController.php
- > /wp-content/plugins/sagenda/initializer.php
- > /wp-content/plugins/sagenda/controllers/AdminTokenController.php
- > /wp-content/plugins/sagenda/assets/phpunit-6.1/tests/TextUI/_files/phpt_external.php
- > /wp-content/plugins/sagenda/controllers/SearchController.php
- > /wp-content/plugins/sagenda/plugin.php
- 513× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sagenda/assets/vendor/symfony/phpunit-bridge/Tests/ClockMockTest.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/sagenda/assets/vendor/twig/src/Node/Expression/Binary/EqualBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sagenda/assets/phpunit-6.1/tests/_files/IgnoreCodeCoverageClassTest.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sagenda/assets/phpunit-6.1/tests/Regression/Trac/783/OneTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sagenda/assets/phpunit-6.1/tests/_files/DataProviderFilterTest.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sagenda/assets/phpunit-6.1/tests/Regression/GitHub/1149/Issue1149Test.php:4
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extensions_Grammar' not found in wp-content/plugins/sagenda/assets/vendor/twig/extensions/lib/Twig/Extensions/Grammar/Switch.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Runner\\BaseTestRunner' not found in wp-content/plugins/sagenda/assets/phpunit-6.1/src/TextUI/TestRunner.php:52
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sagenda/assets/vendor/mashape/unirest-php/tests/Unirest/ResponseTest.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Twig_CompilerInterface' not found in wp-content/plugins/sagenda/assets/vendor/twig/src/Compiler.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
sagenda/plugin.php 85% from 13 tests
The main PHP file in "Sagenda - Scheduling List - LEGACY" ver. 1.3.8 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 186 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sagenda.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected92,061 lines of code in 1,370 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 989 | 11,699 | 17,799 | 48,128 |
JavaScript | 109 | 6,484 | 5,446 | 25,902 |
PO File | 38 | 2,123 | 1,523 | 4,805 |
reStructuredText | 102 | 2,679 | 2,378 | 3,644 |
CSS | 17 | 67 | 233 | 3,276 |
Markdown | 35 | 1,194 | 0 | 2,098 |
C | 2 | 223 | 194 | 1,083 |
JSON | 13 | 0 | 0 | 737 |
LESS | 11 | 274 | 273 | 572 |
XML | 30 | 35 | 0 | 483 |
Ant | 1 | 65 | 0 | 367 |
Twig | 8 | 47 | 4 | 293 |
XSD | 1 | 0 | 0 | 267 |
YAML | 6 | 32 | 0 | 155 |
HTML | 3 | 53 | 28 | 107 |
C/C++ Header | 2 | 19 | 21 | 55 |
m4 | 2 | 13 | 12 | 46 |
Bourne Shell | 1 | 6 | 1 | 43 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 127)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 6.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 216.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 127.00 |
Code structure | ||
---|---|---|
Namespaces | 63 | |
Interfaces | 41 | |
Traits | 3 | |
Classes | 789 | |
▷ Abstract classes | 28 | 3.55% |
▷ Concrete classes | 761 | 96.45% |
▷ Final classes | 3 | 0.39% |
Methods | 3,397 | |
▷ Static methods | 388 | 11.42% |
▷ Public methods | 2,908 | 85.60% |
▷ Protected methods | 359 | 10.57% |
▷ Private methods | 130 | 3.83% |
Functions | 268 | |
▷ Named functions | 222 | 82.84% |
▷ Anonymous functions | 46 | 17.16% |
Constants | 154 | |
▷ Global constants | 4 | 2.60% |
▷ Class constants | 150 | 97.40% |
▷ Public constants | 150 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected