Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.20ms] Passed 4 tests
An overview of server-side resources used by Christmas Calendar by CMobile
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 56.47 ▲19.29 |
Dashboard /wp-admin | 3.45 ▲0.15 | 52.01 ▲0.83 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.42 ▲0.59 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 85.83 ▼14.69 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 35.54 ▲0.46 |
Christmas Calendar /wp-admin/options-general.php?page=my-setting-admin | 3.34 | 32.21 |
Books /wp-admin/edit.php?post_type=book | 3.42 | 34.49 |
Add New /wp-admin/post-new.php?post_type=book | 3.49 | 48.93 |
Server storage [IO: ▲0.56MB] [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: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Christmas Calendar by CMobile
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.27 ▼1.11 | 2.53 ▲0.83 | 54.95 ▲16.71 |
Dashboard /wp-admin | 2,240 ▲52 | 5.87 ▼0.03 | 112.40 ▲1.53 | 43.34 ▼1.94 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▼0.15 | 37.52 ▼3.03 | 32.45 ▼4.57 |
Add New Post /wp-admin/post-new.php | 1,568 ▲39 | 18.73 ▲0.39 | 609.98 ▼11.37 | 59.48 ▼1.55 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.24 ▲0.01 | 102.51 ▼3.29 | 44.12 ▲0.13 |
Christmas Calendar /wp-admin/options-general.php?page=my-setting-admin | 1,081 | 1.73 | 27.76 | 29.67 |
Books /wp-admin/edit.php?post_type=book | 1,084 | 1.98 | 33.30 | 29.52 |
Add New /wp-admin/post-new.php?post_type=book | 2,173 | 7.56 | 175.38 | 62.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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cmobile-christmas-calendar/cmobile-christmascalendar.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cmobile-christmas-calendar/admin/cmobile-options.php:551
- > 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 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
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
cmobile-christmas-calendar/cmobile-christmascalendar.php 85% from 13 tests
The main PHP file in "Christmas Calendar by CMobile" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cmobile-christmas-calendar.php" instead of "cmobile-christmascalendar.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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
Everything looks great! No dangerous files found in this plugin885 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 103 | 106 | 451 |
JavaScript | 1 | 42 | 41 | 200 |
CSS | 1 | 16 | 11 | 186 |
PO File | 1 | 16 | 16 | 48 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 32.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 compressed PNG files occupy 0.50MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Lucka11.png | 15.38KB | 16.12KB | 0.00% |
images/Lucka4.png | 12.08KB | 12.91KB | 0.00% |
images/baksida_lucka.png | 36.16KB | 38.67KB | 0.00% |
images/Lucka12.png | 24.73KB | 25.54KB | 0.00% |
images/Lucka1.png | 5.72KB | 6.13KB | 0.00% |