Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/enable-latex/core.class.php+1698
Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
Server metrics [RAM: ▼1.32MB] [CPU: ▼50.42ms] Passed 4 tests
This is a short check of server-side resources used by Enable Latex
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.66 ▼0.80 | 7.51 ▼37.24 |
Dashboard /wp-admin | 2.68 ▼0.62 | 7.82 ▼41.41 |
Posts /wp-admin/edit.php | 2.68 ▼0.67 | 8.02 ▼39.87 |
Add New Post /wp-admin/post-new.php | 2.68 ▼3.20 | 6.87 ▼83.15 |
Media Library /wp-admin/upload.php | 2.68 ▼0.55 | 9.46 ▼24.89 |
Server storage [IO: ▲1.69MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- Illegal file modification found: 3 files (0.30KB) outside of "wp-content/plugins/enable-latex/" and "wp-content/uploads/"
- (new file) wp-content/sedlex/inline_styles/f1e09167eaf7ffd160b6a2a067da0ec51e77ea1e.css
- (new file) wp-content/sedlex/inline_styles/dafff9e6eed64c15b82c7f22de7e5814319b6b5f.css
- (new file) wp-content/sedlex/inline_scripts/.empty
Filesystem: 166 new files
Database: no new tables, 9 new options
New WordPress options |
---|
coreSLframework_options |
can_compress_scripts |
enableLatex_options |
widget_recent-comments |
plugin_error_on_activation |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Enable Latex
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.31 ▼1.23 | 1.89 ▼0.49 | 44.14 ▲1.78 |
Dashboard /wp-admin | 2,233 ▲45 | 5.83 ▲0.96 | 103.76 ▼10.88 | 39.17 ▼7.31 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.02 ▼0.02 | 39.51 ▲3.81 | 35.26 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,542 ▲4 | 23.44 ▲0.32 | 696.10 ▲74.94 | 72.01 ▲11.13 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.20 ▲0.05 | 97.03 ▼1.09 | 41.67 ▼2.57 |
About... /wp-admin/sedlex.php | 26 | 0.44 | 0.08 | 13.39 |
Enable Latex /wp-admin/sedlex.php?page=enable-latex/enable-latex.php | 26 | 0.44 | 0.09 | 8.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/enable-latex/core.class.php+1698
Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- coreSLframework_options
- plugin_error_on_activation
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/enable-latex/enable-latex.php
- > /wp-content/plugins/enable-latex/core.class.php
- > /wp-content/plugins/enable-latex/core.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'core.php' (include_path='.:/usr/share/php') in wp-content/plugins/enable-latex/core/templates/my-plugin.php on line 18
- > PHP Warning
require_once(core.php): failed to open stream: No such file or directory in wp-content/plugins/enable-latex/core/templates/my-plugin.php on line 18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/sedlex.php
- > Network (severe)
wp-admin/sedlex.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/sedlex.php?page=enable-latex/enable-latex.php
- > Network (severe)
wp-admin/sedlex.php?page=enable-latex/enable-latex.php - Failed to load resource: the server responded with a status of 404 (Not Found)
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
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (The configuration page of the plugin), #2 (An example of LaTex formula in a post)
enable-latex/enable-latex.php 92% from 13 tests
The main PHP script in "Enable Latex" version 1.2.16 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 519 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected16,621 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 35 | 3,901 | 0 | 8,553 |
PHP | 19 | 900 | 1,660 | 6,664 |
JavaScript | 6 | 219 | 254 | 829 |
CSS | 11 | 85 | 13 | 460 |
Markdown | 1 | 20 | 0 | 84 |
JSON | 1 | 0 | 0 | 29 |
INI | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 119)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 48.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 211.00 |
Average method complexity | 7.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 119.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 146 | |
▷ Static methods | 35 | 23.97% |
▷ Public methods | 143 | 97.95% |
▷ Protected methods | 3 | 2.05% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
34 PNG files occupy 0.30MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/img/tree_vline.png | 0.12KB | 0.08KB | ▼ 32.52% |
core/img/tree_lastnode_plus.png | 0.14KB | 0.12KB | ▼ 14.97% |
core/img/warning.png | 4.46KB | 1.51KB | ▼ 66.10% |
core/img/arrow_up.png | 0.24KB | 0.27KB | 0.00% |
core/img/arrow_down_s.png | 0.27KB | 0.27KB | ▼ 1.79% |