Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼296.76ms] Passed 4 tests
An overview of server-side resources used by Astrology
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.35 | 54.68 ▲3.17 |
Dashboard /wp-admin | 3.80 ▲0.36 | 36.27 ▲2.12 |
Posts /wp-admin/edit.php | 4.02 ▲0.35 | 39.64 ▲1.03 |
Add New Post /wp-admin/post-new.php | 7.32 ▲0.32 | 94.28 ▼1,193.34 |
Media Library /wp-admin/upload.php | 3.75 ▲0.42 | 26.71 ▲3.34 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 446 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Astrology
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,854 ▲100 | 16.01 ▲0.31 | 6.97 ▼0.29 | 2.45 ▼0.90 |
Dashboard /wp-admin | 2,922 ▲68 | 6.28 ▲0.08 | 118.61 ▼16.90 | 150.09 ▼11.74 |
Posts /wp-admin/edit.php | 2,722 ▲28 | 3.23 ▲0.00 | 62.83 ▼0.15 | 138.43 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,691 ▲1 | 16.87 ▼3.64 | 424.66 ▼15.02 | 171.74 ▲12.48 |
Media Library /wp-admin/upload.php | 1,732 ▲37 | 5.64 ▲0.17 | 142.53 ▼2.84 | 184.90 ▼8.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 255× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Prokerala\\Astrology\\Vendor\\Buzz\\Exception\\ExceptionInterface' not found in wp-content/plugins/astrology/dependencies/vendor/kriswallsmith/buzz/lib/Exception/ClientException.php:10
- > PHP Warning
include(): Failed opening 'wp-content/plugins/astrology/dependencies/vendor/prokerala/astrology-sdk/vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/astrology/dependencies/vendor/prokerala/astrology-sdk/prepend.inc.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'Prokerala\\Astrology\\Vendor\\Buzz\\Client\\AbstractCurl' not found in wp-content/plugins/astrology/dependencies/vendor/kriswallsmith/buzz/lib/Client/Curl.php:11
- > PHP Fatal error
Uncaught Error: Class 'Prokerala\\Astrology\\Vendor\yholm\\Psr7\\Factory\\Psr17Factory' not found in wp-content/plugins/astrology/dependencies/vendor/prokerala/astrology-sdk/prepend.inc.php:22
- > PHP Warning
include(): Failed opening 'wp-content/plugins/astrology/dependencies/vendor/prokerala/astrology-sdk/vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/astrology/dependencies/vendor/prokerala/astrology-sdk/prepend.inc.php on line 17
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheInterface' not found in wp-content/plugins/astrology/dependencies/vendor/symfony/cache/Simple/TraceableCache.php:23
- > PHP Fatal error
Uncaught Error: Class 'Prokerala\\Astrology\\Vendor\yholm\\Psr7\\Factory\\Psr17Factory' not found in wp-content/plugins/astrology/dependencies/vendor/prokerala/astrology-sdk/prepend.inc.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Prokerala\\Astrology\\Vendor\\Buzz\\Exception\\ExceptionInterface' not found in wp-content/plugins/astrology/dependencies/vendor/kriswallsmith/buzz/lib/Exception/InvalidArgumentException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Prokerala\\Api\\Astrology\\Result\\ResultInterface' not found in wp-content/plugins/astrology/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/Horoscope/Papasamyam.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Prokerala\\WP\\Astrology\\Front\\ReportControllerInterface' not found in wp-content/plugins/astrology/src/Front/Report/PanchangController.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
2 plugin tags: astrology, prokerala
astrology/astrology.php Passed 13 tests
The entry point to "Astrology" version 1.0.6 is a PHP file that has certain tags in its header comment area
68 characters long description:
Integrate astrology calculators powered by Prokerala's Astrology API
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin22,262 lines of code in 439 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 432 | 1,546 | 14,755 | 21,800 |
CSS | 2 | 79 | 5 | 306 |
JavaScript | 5 | 22 | 155 | 156 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 79 | |
Interfaces | 61 | |
Traits | 27 | |
Classes | 281 | |
▷ Abstract classes | 9 | 3.20% |
▷ Concrete classes | 272 | 96.80% |
▷ Final classes | 112 | 41.18% |
Methods | 1,650 | |
▷ Static methods | 61 | 3.70% |
▷ Public methods | 1,395 | 84.55% |
▷ Protected methods | 110 | 6.67% |
▷ Private methods | 145 | 8.79% |
Functions | 113 | |
▷ Named functions | 16 | 14.16% |
▷ Anonymous functions | 97 | 85.84% |
Constants | 191 | |
▷ Global constants | 5 | 2.62% |
▷ Class constants | 186 | 97.38% |
▷ Public constants | 177 | 95.16% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected