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: ▼4.19ms] Passed 4 tests
Analyzing server-side resources used by TinyMCE Preformatted
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.22 ▼4.62 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.82 ▼3.76 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.63 ▼0.30 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.58 ▼8.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.71 ▲0.48 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for TinyMCE Preformatted
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.20 ▼1.18 | 2.00 ▲0.14 | 42.32 ▼8.99 |
Dashboard /wp-admin | 2,208 ▲20 | 5.85 ▲0.99 | 110.43 ▼7.88 | 42.53 ▼3.34 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 1.99 ▼0.02 | 34.67 ▼4.05 | 33.78 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,539 ▲19 | 23.19 ▼0.05 | 675.50 ▲37.51 | 53.18 ▲4.19 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.16 ▼0.03 | 93.96 ▼2.40 | 41.38 ▼0.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
file_get_contents(wp-content/plugins/tinymce-preformatted/mce_plugins/3.5/plugins/preformatted/langs/_dlg.js): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/tinymce-preformatted/mce_plugins/3.5/plugins/preformatted/langs/langs.php on line 4
- > PHP Notice
Undefined variable: mce_locale in wp-content/plugins/tinymce-preformatted/mce_plugins/3.5/plugins/preformatted/langs/langs.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/tinymce-preformatted/tinymce-preformatted.php:33
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Visual Editor.) image missing
tinymce-preformatted/tinymce-preformatted.php Passed 13 tests
The entry point to "TinyMCE Preformatted" version 0.6.0 is a PHP file that has certain tags in its header comment area
27 characters long description:
Insert preformatted source.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin289 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 25 | 8 | 145 |
PHP | 3 | 28 | 33 | 115 |
HTML | 1 | 2 | 0 | 22 |
CSS | 1 | 2 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 71.93KB | 30.75KB | ▼ 57.25% |
mce_plugins/3.5/plugins/preformatted/img/icon.png | 0.25KB | 0.12KB | ▼ 51.00% |