Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼0.10ms] Passed 4 tests
Analyzing server-side resources used by iThoughts Advanced Code Editor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 43.38 ▼0.00 |
Dashboard /wp-admin | 3.53 ▲0.23 | 48.13 ▼0.69 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 46.27 ▲0.04 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 95.60 ▲11.74 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.50 ▲0.27 |
Report false positive/negative /wp-admin/admin.php?page=ithoughts_ace_report | 3.49 | 33.77 |
Advanced Code Editor /wp-admin/options-general.php?page=ithoughts_ace | 3.43 | 28.42 |
Server storage [IO: ▲37.53MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Filesystem usage must be lower than 25MB (currently using 37.53MB)
Filesystem: 1,559 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
iThoughts Advanced Code Editor: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 14.38 ▲0.08 | 1.75 ▼0.18 | 44.25 ▼1.66 |
Dashboard /wp-admin | 2,231 ▲59 | 6.16 ▲1.18 | 113.62 ▼11.56 | 37.70 ▼5.30 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 3.00 ▲0.95 | 39.90 ▲5.40 | 34.42 ▼1.24 |
Add New Post /wp-admin/post-new.php | 1,703 ▲160 | 23.82 ▲0.91 | 612.74 ▼58.54 | 26.80 ▼29.44 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 5.43 ▲1.28 | 102.58 ▲0.78 | 43.49 ▲0.32 |
Report false positive/negative /wp-admin/admin.php?page=ithoughts_ace_report | 1,062 | 3.02 | 51.39 | 77.79 |
Advanced Code Editor /wp-admin/options-general.php?page=ithoughts_ace | 1,577 | 5.30 | 109.07 | 63.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ithoughts-advanced-code-editor/templates/mail_report.php
- > /wp-content/plugins/ithoughts-advanced-code-editor/submodules/ace-builds/demo/kitchen-sink/docs/php.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: response in wp-content/plugins/ithoughts-advanced-code-editor/templates/mail_report.php on line 748
- > PHP Warning
fgets() expects parameter 1 to be resource, string given in wp-content/plugins/ithoughts-advanced-code-editor/submodules/ace-builds/demo/kitchen-sink/docs/php.php on line 13
- > PHP Notice
Undefined variable: included in wp-content/plugins/ithoughts-advanced-code-editor/templates/mail_report.php on line 803
- > PHP Notice
Undefined variable: code in wp-content/plugins/ithoughts-advanced-code-editor/templates/mail_report.php on line 693
- > PHP Notice
Undefined variable: name in wp-content/plugins/ithoughts-advanced-code-editor/templates/mail_report.php on line 606
- > PHP Notice
Undefined variable: type in wp-content/plugins/ithoughts-advanced-code-editor/templates/mail_report.php on line 557
- > PHP Notice
Undefined variable: siteurl in wp-content/plugins/ithoughts-advanced-code-editor/templates/mail_report.php on line 869
- > PHP Notice
Undefined variable: email in wp-content/plugins/ithoughts-advanced-code-editor/templates/mail_report.php on line 610
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ithoughts-advanced-code-editor/templates/options.php:19
- > PHP Warning
Use of undefined constant STDIN - assumed 'STDIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/ithoughts-advanced-code-editor/submodules/ace-builds/demo/kitchen-sink/docs/php.php on line 13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Option page of iThoughts Advanced Code Editor with a test ACE editor), #2 (Edition of a plugin file), #3 (Information tooltip and completion suggestions in a theme CSS file)
ithoughts-advanced-code-editor/ithoughts_advanced_code_editor.php 92% from 13 tests
"iThoughts Advanced Code Editor" version 1.2.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ithoughts-advanced-code-editor.php" instead of "ithoughts_advanced_code_editor.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
These items require your attention
- Do not include executable or dangerous files in your plugin
- .as - Adobe Flash ActionScript File in Adobe Flash
- ☣ wp-content/plugins/ithoughts-advanced-code-editor/submodules/ace-builds/demo/kitchen-sink/docs/actionscript.as
- .ahk - AutoHotkey Script in AutoHotkey
- ☣ wp-content/plugins/ithoughts-advanced-code-editor/submodules/ace-builds/demo/kitchen-sink/docs/autohotkey.ahk
- .bat - Batch File in Windows
- ☣ wp-content/plugins/ithoughts-advanced-code-editor/submodules/ace-builds/demo/kitchen-sink/docs/batchfile.bat
- .ls - LightWave LScript File in LightWave
- ☣ wp-content/plugins/ithoughts-advanced-code-editor/submodules/ace-builds/demo/kitchen-sink/docs/live_script.ls
- ☣ wp-content/plugins/ithoughts-advanced-code-editor/submodules/ace-builds/demo/kitchen-sink/docs/livescript.ls
- .mel - Maya Embedded Language File in Maya 2013
- ☣ wp-content/plugins/ithoughts-advanced-code-editor/submodules/ace-builds/demo/kitchen-sink/docs/mel.mel
- .ps1 - Windows PowerShell Cmdlet in Windows
- ☣ wp-content/plugins/ithoughts-advanced-code-editor/submodules/ace-builds/demo/kitchen-sink/docs/powershell.ps1
- .vbs - VBScript File in Windows
- ☣ wp-content/plugins/ithoughts-advanced-code-editor/submodules/ace-builds/demo/kitchen-sink/docs/vbscript.vbs
- .as - Adobe Flash ActionScript File in Adobe Flash
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1,360 | 52,021 | 31,819 | 491,395 |
AsciiDoc | 1 | 1,192 | 16 | 4,832 |
PHP | 14 | 231 | 680 | 1,823 |
HTML | 17 | 117 | 24 | 1,060 |
JSON | 6 | 0 | 0 | 564 |
CSS | 5 | 48 | 35 | 401 |
reStructuredText | 1 | 133 | 21 | 259 |
Markdown | 4 | 106 | 0 | 223 |
LESS | 2 | 35 | 20 | 176 |
XML | 3 | 2 | 3 | 134 |
PO File | 1 | 43 | 43 | 133 |
SVG | 2 | 9 | 0 | 85 |
make | 1 | 26 | 11 | 85 |
Objective C | 1 | 27 | 4 | 73 |
TypeScript | 1 | 8 | 0 | 64 |
Scala | 1 | 7 | 1 | 61 |
liquid | 1 | 18 | 0 | 58 |
Sass | 2 | 12 | 1 | 46 |
JSP | 1 | 5 | 1 | 40 |
Velocity Template Language | 1 | 5 | 2 | 37 |
Forth | 1 | 5 | 0 | 36 |
Stylus | 1 | 11 | 8 | 36 |
TeX | 2 | 3 | 3 | 36 |
diff | 1 | 5 | 29 | 35 |
C++ | 1 | 9 | 4 | 33 |
Nix | 1 | 4 | 21 | 32 |
Freemarker Template | 1 | 11 | 4 | 31 |
Tcl/Tk | 1 | 5 | 5 | 30 |
Bourne Shell | 1 | 6 | 5 | 29 |
EJS | 1 | 2 | 0 | 29 |
Groovy | 1 | 11 | 1 | 29 |
Haml | 1 | 5 | 2 | 29 |
Pascal | 1 | 7 | 12 | 29 |
ActionScript | 1 | 12 | 11 | 28 |
Perl | 1 | 6 | 3 | 28 |
Ruby | 1 | 6 | 1 | 28 |
YAML | 1 | 5 | 2 | 28 |
AutoHotkey | 1 | 6 | 3 | 26 |
Slim | 1 | 5 | 0 | 26 |
VHDL | 1 | 9 | 0 | 25 |
Twig | 1 | 5 | 1 | 24 |
Pug | 1 | 15 | 7 | 23 |
Cucumber | 1 | 5 | 1 | 22 |
Go | 1 | 4 | 8 | 22 |
EEx | 1 | 4 | 1 | 21 |
ERB | 1 | 4 | 1 | 21 |
Elixir | 1 | 7 | 14 | 21 |
Lisp | 1 | 1 | 1 | 20 |
Lua | 1 | 8 | 10 | 20 |
Specman e | 1 | 8 | 2 | 20 |
TOML | 1 | 7 | 2 | 20 |
Scheme | 1 | 1 | 1 | 19 |
ABAP | 1 | 9 | 9 | 18 |
PowerShell | 1 | 5 | 1 | 18 |
Rust | 1 | 2 | 0 | 18 |
Visual Basic | 1 | 1 | 5 | 17 |
CoffeeScript | 1 | 3 | 3 | 16 |
Dockerfile | 1 | 13 | 24 | 16 |
R | 1 | 4 | 0 | 16 |
Vala | 1 | 5 | 0 | 16 |
Assembly | 2 | 5 | 0 | 15 |
Haxe | 1 | 1 | 1 | 15 |
Clojure | 1 | 1 | 4 | 14 |
Erlang | 1 | 3 | 3 | 14 |
Protocol Buffers | 1 | 2 | 0 | 14 |
GLSL | 1 | 4 | 3 | 13 |
Julia | 1 | 2 | 0 | 13 |
Python | 1 | 3 | 3 | 13 |
Swift | 1 | 3 | 0 | 13 |
Verilog-SystemVerilog | 1 | 1 | 0 | 11 |
DOS Batch | 1 | 4 | 1 | 10 |
Dart | 1 | 4 | 5 | 10 |
Elm | 1 | 2 | 0 | 10 |
Haskell | 1 | 4 | 6 | 10 |
OCaml | 1 | 3 | 5 | 10 |
Lean | 1 | 1 | 0 | 8 |
Windows Message File | 1 | 0 | 0 | 8 |
SQL | 2 | 0 | 0 | 7 |
Smarty | 1 | 0 | 0 | 7 |
Handlebars | 1 | 1 | 1 | 6 |
Java | 1 | 2 | 7 | 6 |
Ada | 1 | 0 | 0 | 5 |
JSX | 1 | 0 | 4 | 5 |
XQuery | 1 | 1 | 0 | 5 |
INI | 1 | 0 | 0 | 4 |
C# | 1 | 0 | 1 | 3 |
Razor | 1 | 0 | 0 | 3 |
ColdFusion | 1 | 2 | 1 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 23.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 4 | 66.67% |
▷ Concrete classes | 2 | 33.33% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 14 | 30.43% |
▷ Public methods | 41 | 89.13% |
▷ Protected methods | 2 | 4.35% |
▷ Private methods | 3 | 6.52% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.63MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
submodules/ace-builds/demo/bookmarklet/images/logo.png | 51.31KB | 17.19KB | ▼ 66.50% |
submodules/ace-builds/demo/bookmarklet/images/logo_half.png | 19.52KB | 6.47KB | ▼ 66.84% |
screenshot-2.png | 171.71KB | 54.39KB | ▼ 68.33% |
submodules/ace-builds/demo/kitchen-sink/logo.png | 48.11KB | 20.51KB | ▼ 57.36% |
submodules/ace-builds/demo/bookmarklet/images/background.png | 3.36KB | 0.55KB | ▼ 83.66% |