Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.49ms] Passed 4 tests
Server-side resources used by Wolfram Notebook Embedder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.93 ▲3.89 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.26 ▲1.39 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 43.94 ▼6.84 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 82.54 ▼5.71 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.47 ▲1.20 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Wolfram Notebook Embedder
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.26 ▼1.17 | 2.01 ▲0.28 | 43.18 ▼3.06 |
Dashboard /wp-admin | 2,210 ▲19 | 5.91 ▲0.97 | 111.68 ▲7.07 | 41.03 ▲0.31 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▲0.02 | 37.03 ▲0.41 | 36.42 ▲0.31 |
Add New Post /wp-admin/post-new.php | 6,360 ▲4,839 | 27.58 ▲3.94 | 877.24 ▲173.32 | 40.03 ▼16.51 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.20 ▼0.09 | 93.71 ▼14.76 | 40.57 ▼5.94 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wolfram-notebook-embedder/WneQuicktag.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wolfram-notebook-embedder/WneOembed.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wolfram-notebook-embedder/WneBlock.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wolfram-notebook-embedder/WneBlock.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
wolfram-notebook-embedder/WolframNotebookEmbedder.php 92% from 13 tests
"Wolfram Notebook Embedder" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wolfram-notebook-embedder.php" instead of "WolframNotebookEmbedder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin647 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 45 | 2 | 377 |
PHP | 5 | 65 | 143 | 240 |
SVG | 1 | 1 | 0 | 17 |
CSS | 2 | 2 | 0 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 70.00% |
▷ Protected methods | 6 | 30.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/tinyMCEbutton.png | 0.95KB | 0.51KB | ▼ 46.00% |