Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.20ms] Passed 4 tests
A check of server-side resources used by CalJ
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.21 ▼2.12 |
Dashboard /wp-admin | 3.36 ▲0.02 | 51.29 ▼15.80 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 51.80 ▲0.70 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 93.95 ▼3.57 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.24 ▲0.80 |
CalJ /wp-admin/options-general.php?page=calj-setting | 3.25 | 34.71 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for CalJ
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.25 ▼0.28 | 1.68 ▼0.33 | 41.57 ▼3.79 |
Dashboard /wp-admin | 2,202 ▲25 | 5.59 ▼0.08 | 89.78 ▼10.34 | 38.82 ▼3.90 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.03 | 33.43 ▼1.28 | 35.40 ▼0.08 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.57 ▲0.60 | 642.20 ▼56.99 | 55.01 ▲3.45 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.12 ▲0.01 | 97.89 ▼19.11 | 44.09 ▼3.47 |
CalJ /wp-admin/options-general.php?page=calj-setting | 809 | 2.20 | 27.69 | 30.15 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function calj\\wordpress\\is_admin() in wp-content/plugins/calj/calj.php:17
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: events, calendar, shortcode, date, hebrew...
calj/calj.php Passed 13 tests
"CalJ" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
35 characters long description:
Add the Shabbat times on your site.
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
There were no executable files found in this plugin315 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 68 | 51 | 315 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 11 | 68.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 31.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin