Benchmarks
Plugin footprint 65% 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.37MB] [CPU: ▼4.60ms] Passed 4 tests
Analyzing server-side resources used by LaTeX2HTML
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.40 | 44.04 ▲0.38 |
Dashboard /wp-admin | 3.73 ▲0.38 | 47.18 ▼13.29 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 47.80 ▼0.37 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 85.82 ▼5.11 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 35.58 ▲1.13 |
LaTex2HTML /wp-admin/options-general.php?page=latex2html | 3.60 | 34.47 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_l2hbibtex |
New WordPress options |
---|
db_upgraded |
l2h_options |
l2h_upgrade_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for LaTeX2HTML
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲50 | 14.25 ▼0.09 | 1.65 ▼0.09 | 38.02 ▼7.91 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.06 | 88.29 ▼11.92 | 38.87 ▼6.86 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▲0.02 | 40.01 ▲2.90 | 35.22 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.31 ▲0.16 | 596.55 ▼71.15 | 45.51 ▼5.44 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.32 ▲0.12 | 98.54 ▲0.43 | 43.67 ▲2.02 |
LaTex2HTML /wp-admin/options-general.php?page=latex2html | 871 | 2.16 | 25.40 | 32.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_l2hbibtex
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- l2h_upgrade_options
- widget_theysaidso_widget
- l2h_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/latex2html/inc/html/manual.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined index: date in wp-content/plugins/latex2html/inc/html/manual.php on line 4
- > PHP Notice
Undefined index: ver in wp-content/plugins/latex2html/inc/html/manual.php on line 3
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=latex2html
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'top')" "TypeError: Cannot read properties of undefined (reading 'top')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/latex2html/inc/js/l2h.js:76:104)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=latex2html
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'top')
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: html, latex, mathjax
latex2html/latex2html.php Passed 13 tests
The main file in "LaTeX2HTML" v. 2.5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
48 characters long description:
Translate your Latex document into HTML+MathJax.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,845 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 131 | 251 | 2,303 |
CSS | 6 | 74 | 7 | 459 |
JavaScript | 1 | 3 | 7 | 83 |
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.31 |
Average class complexity | 8.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 26 | 27.37% |
▷ Public methods | 95 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
3 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/pic/alipay.png | 35.53KB | 13.53KB | ▼ 61.91% |
inc/pic/paypal.png | 37.59KB | 13.59KB | ▼ 63.85% |
inc/pic/tenpay.png | 34.67KB | 9.58KB | ▼ 72.36% |