Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.43ms] Passed 4 tests
This is a short check of server-side resources used by WoPo Calculator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.92 ▼5.85 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.41 ▼7.79 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.28 ▼8.87 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.16 ▼7.22 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.80 ▲1.95 |
Server storage [IO: ▲17.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 184 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WoPo Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.04 | 1.61 ▼0.04 | 38.74 ▼6.31 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.10 | 81.48 ▼16.99 | 36.96 ▼5.12 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▲0.01 | 32.88 ▼4.94 | 36.08 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 18.19 ▲0.05 | 612.99 ▼45.54 | 66.32 ▲1.06 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.05 | 96.93 ▲2.13 | 42.23 ▼1.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at 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/wopo-calculator/wopo-calculator.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: javascript, wopo calculator, online, calculator, app...
wopo-calculator/wopo-calculator.php 77% from 13 tests
"WoPo Calculator" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "5.2")
- Requires PHP: Required version does not match the one declared in readme.txt ("5.2.4" instead of "7.1")
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin40,258 lines of code in 127 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 27 | 2,630 | 7,781 | 25,294 |
C++ | 34 | 1,601 | 2,526 | 7,979 |
C/C++ Header | 30 | 375 | 390 | 2,590 |
CSS | 11 | 94 | 94 | 1,619 |
Markdown | 11 | 209 | 0 | 954 |
JSON | 3 | 0 | 0 | 547 |
XML | 2 | 0 | 1 | 513 |
HTML | 3 | 9 | 22 | 375 |
SVG | 1 | 0 | 0 | 278 |
CMake | 3 | 11 | 3 | 55 |
PHP | 1 | 4 | 14 | 39 |
Bourne Shell | 1 | 1 | 0 | 15 |
PHP code Passed 2 tests
A brief analysis 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.23 |
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 | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
26 PNG files occupy 0.66MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
html/app/mcalculator/server/public/Images/808ab329-46e7-5e3d-a5a9-178d7c3949a1.webPlatform.png | 1.64KB | 1.58KB | ▼ 3.92% |
html/app/mcalculator/server/public/Images/9b51305a-80ec-7735-fe39-52dfc09ffc3a.webPlatform.png | 2.42KB | 1.93KB | ▼ 20.22% |
html/app/mcalculator/server/public/Images/eca1d252-e2aa-60bf-b92a-0c061bb25046.webPlatform.png | 4.71KB | 2.79KB | ▼ 40.67% |
html/app/mcalculator/server/public/Images/928fc572-71e2-9ee5-88c6-d7fe4039bc09.webPlatform.png | 5.22KB | 3.11KB | ▼ 40.33% |
html/app/mcalculator/server/public/Images/c58c078a-cbaa-5b6e-ab1f-664818f3623d.webPlatform.png | 2.35KB | 1.89KB | ▼ 19.34% |