Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/wajeez-otd/wajeezotd.php+40
Methods with the same name as their class will not be constructors in a future version of PHP; WajeezOTD has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼56.03ms] Passed 4 tests
Analyzing server-side resources used by Wajeez OTD
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.06 ▼36.46 |
Dashboard /wp-admin | 2.16 ▼1.14 | 6.36 ▼48.34 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 5.60 ▼46.76 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 5.94 ▼92.55 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 5.48 ▼30.73 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wajeez-message |
theysaidso_admin_options |
widget_wajeezotd |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Wajeez OTD
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲134 | 13.85 ▼0.43 | 7.91 ▲6.12 | 41.03 ▼3.91 |
Dashboard /wp-admin | 2,213 ▲36 | 5.60 ▲0.03 | 98.36 ▲6.75 | 41.85 ▼2.39 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 1.99 ▲0.04 | 40.41 ▲1.09 | 36.59 ▲3.50 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.21 ▲0.13 | 627.52 ▼43.66 | 50.98 ▼8.98 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.22 ▲0.05 | 107.04 ▲4.93 | 48.56 ▲4.03 |
Wajeez OTD Settings /wp-admin/plugin.php?page=wajeez-settings | 26 | 0.42 | 0.09 | 14.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wajeez-otd/wajeezotd.php+40
Methods with the same name as their class will not be constructors in a future version of PHP; WajeezOTD has a deprecated constructor
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_wajeezotd
- wajeez-message
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wajeez-otd/wajeezotd.php:38
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/plugin.php?page=wajeez-settings
- > Network (severe)
wp-admin/plugin.php?page=wajeez-settings - Failed to load resource: the server responded with a status of 404 (Not 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 to be fixed:
- Screenshots: Please add images for these screenshots: #1 (FrontEnd), #2 (Settings page)
wajeez-otd/wajeezotd.php 92% from 13 tests
The entry point to "Wajeez OTD" version 1.1.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wajeez-otd.php" instead of "wajeezotd.php")
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
Good job! No executable or dangerous file extensions detected407 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 40 | 41 | 246 |
PO File | 2 | 46 | 46 | 130 |
CSS | 2 | 1 | 2 | 31 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 7.80KB | 3.28KB | ▼ 57.87% |
screenshot-2.png | 18.27KB | 7.61KB | ▼ 58.35% |