Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.70ms] Passed 4 tests
Server-side resources used by Almar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.36 ▼1.57 |
Dashboard /wp-admin | 3.50 ▲0.20 | 49.43 ▼1.51 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 49.60 ▼1.64 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 94.17 ▼2.07 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.13 ▲5.23 |
Admin Theme Options /wp-admin/themes.php?page=wpthemeseo-options-framework | 3.41 | 35.61 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
almar |
db_upgraded |
can_compress_scripts |
wpthemeseo |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Almar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲128 | 13.34 ▼1.41 | 1.70 ▼0.07 | 30.61 ▼10.77 |
Dashboard /wp-admin | 2,249 ▲57 | 4.84 ▼0.06 | 107.36 ▼2.41 | 35.55 ▼7.39 |
Posts /wp-admin/edit.php | 2,075 ▼14 | 1.99 ▲0.02 | 39.57 ▼1.46 | 28.99 ▼6.00 |
Add New Post /wp-admin/post-new.php | 1,583 ▲61 | 22.45 ▼0.80 | 644.72 ▼29.52 | 29.29 ▼24.97 |
Media Library /wp-admin/upload.php | 1,371 ▼20 | 4.20 ▲0.00 | 93.67 ▼5.97 | 36.48 ▼7.89 |
Admin Theme Options /wp-admin/themes.php?page=wpthemeseo-options-framework | 1,042 | 3.53 | 62.22 | 23.45 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- wpthemeseo
- almar
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=wpthemeseo-options-framework
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=wpthemeseo-options-framework
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/almar/assets/plugins/wpthemeseo/options-media-uploader.php:111
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/almar/assets/plugins/wpthemeseo/options-sanitize.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/almar/assets/plugins/wpthemeseo/index.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/almar/index.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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:
- Screenshots: These screenshots require images: #1 (Dashboard), #2 (Post Edit), #3 (Login Page)
almar/index.php 92% from 13 tests
The main PHP script in "Almar" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("almar.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,625 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 198 | 218 | 967 |
CSS | 6 | 7 | 42 | 446 |
JavaScript | 4 | 26 | 23 | 125 |
PO File | 1 | 31 | 31 | 87 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 52 | |
▷ Named functions | 52 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/pico/users.png | 4.35KB | 2.81KB | ▼ 35.32% |
assets/img/pico/comments.png | 2.80KB | 2.21KB | ▼ 21.16% |
assets/plugins/wpthemeseo/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
assets/img/pico/pages.png | 5.71KB | 3.12KB | ▼ 45.30% |
assets/img/bg/bg-login-form.png | 0.20KB | 0.12KB | ▼ 39.71% |