Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.37ms] Passed 4 tests
A check of server-side resources used by Calculoid - Calculator builder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.90 ▼4.50 |
Dashboard /wp-admin | 3.52 ▲0.21 | 59.45 ▲1.71 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 62.60 ▲10.42 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 98.74 ▼5.82 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.30 ▼0.87 |
Calculoid Admin /wp-admin/options-general.php?page=calc-admin | 3.36 | 37.14 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Calculoid - Calculator builder
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲206 | 15.27 ▲0.92 | 1.73 ▲0.04 | 45.41 ▼1.57 |
Dashboard /wp-admin | 2,373 ▲199 | 6.61 ▲0.93 | 121.80 ▲22.56 | 36.84 ▼12.33 |
Posts /wp-admin/edit.php | 2,304 ▲204 | 3.37 ▲1.36 | 48.63 ▲9.97 | 32.30 ▼5.77 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.11 ▼0.36 | 626.01 ▼67.52 | 35.38 ▼21.01 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.49 ▲0.22 | 96.67 ▼16.80 | 43.39 ▼2.89 |
Calculoid Admin /wp-admin/options-general.php?page=calc-admin | 1,120 | 3.67 | 49.95 | 64.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/calculoid-calculators-builder/post-meta-manager-api/fields/radio_buttons.php
- > /wp-content/plugins/calculoid-calculators-builder/post-meta-manager-api/fields/delimiter.php
- 45× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: saved_value in wp-content/plugins/calculoid-calculators-builder/post-meta-manager-api/fields/custom_featured_stack.php on line 370
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/calculoid-calculators-builder/index.php:20
- > PHP Fatal error
Uncaught Error: Class 'PostMetaManagerFieldType' not found in wp-content/plugins/calculoid-calculators-builder/post-meta-manager-api/tmp/metabox.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/calculoid-calculators-builder/post-meta-manager-api/fields/wp_editor.php:15
- > PHP Notice
Undefined variable: saved_value in wp-content/plugins/calculoid-calculators-builder/post-meta-manager-api/fields/reviews.php on line 352
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/calculoid-calculators-builder/post-meta-manager-api/fields/reviews.php:68
- > PHP Notice
Undefined variable: identifier in wp-content/plugins/calculoid-calculators-builder/post-meta-manager-api/fields/i_was_wearing.php on line 382
- > PHP Notice
Undefined variable: identifier in wp-content/plugins/calculoid-calculators-builder/post-meta-manager-api/fields/similar_items.php on line 368
- > PHP Notice
Undefined variable: field_data in wp-content/plugins/calculoid-calculators-builder/post-meta-manager-api/fields/radio_buttons.php on line 2
- > PHP Notice
Undefined variable: identifier in wp-content/plugins/calculoid-calculators-builder/post-meta-manager-api/fields/video_gallery.php on line 380
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== calculoid-calculators-builder ===
)
calculoid-calculators-builder/index.php 92% from 13 tests
This is the main PHP file of "Calculoid - Calculator builder" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("calculoid-calculators-builder.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
Success! There were no dangerous files found in this plugin5,259 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 214 | 201 | 2,543 |
JavaScript | 4 | 421 | 198 | 1,550 |
CSS | 3 | 48 | 56 | 1,166 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.72 |
Average class complexity | 22.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 1 | 2.22% |
▷ Public methods | 44 | 97.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.22% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 33 | |
▷ Global constants | 8 | 24.24% |
▷ Class constants | 25 | 75.76% |
▷ Public constants | 25 | 100.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
16 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
post-meta-manager-api/css/images/ui-bg_highlight-soft_50_aaaaaa_1x100.png | 0.27KB | 0.18KB | ▼ 33.57% |
post-meta-manager-api/css/images/ui-icons_ededed_256x240.png | 6.75KB | 4.17KB | ▼ 38.19% |
post-meta-manager-api/css/images/ui-icons_ffcf29_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
post-meta-manager-api/css/images/ui-bg_glass_40_111111_1x400.png | 0.25KB | 0.16KB | ▼ 36.92% |
post-meta-manager-api/css/images/ui-bg_flat_8_333333_40x100.png | 0.21KB | 0.08KB | ▼ 60.45% |