Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/fv-code-highlighter/src/Diagnostics/Api/Request.php+37
Uncaught Error: Wrong parameters for RuntimeException([string $message [, long $code [, Throwable $previous = NULL]]]) in wp-content/plugins/fv-code-highlighter/src/Diagnostics/Api/Request.php:37
Stack trace:
#0 wp-content/plugins/fv-code-highlighter/src/Diagnostics/Api/Request.php(37): Exception->__construct()
#1 wp-content/plugins/fv-code-highlighter/src/Version.php(43): FvCodeHighlighter\Diagnostics\Api\Request->sendRequest()
#2 wp-content/plugins/fv-code-highlighter/src/Installer.php(57): FvCodeHighlighter\Version::getLatestVersion()
#3 wp-content/plugins/fv-code-highlighter/src/Bootstrap.php(59): FvCodeHighlighter\Installer->hasUpdate()
#4 wp-content/plugins/fv-code-highlighter/src/Bootstrap.php(52): FvCodeHighlighter\Bootstrap->initInstaller()
#5 wp-content/plugins/fv-code-highlighter/fv-code-highlighter.php(52): FvCodeHighlighter\Bootstrap->bootstrap()
#6 /var/www/wordpre
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.98ms] Passed 4 tests
An overview of server-side resources used by FV Code Highlighter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.40 ▲3.22 |
Dashboard /wp-admin | 3.30 ▲0.00 | 46.82 ▼1.44 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.96 ▼4.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.70 ▼4.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.39 ▼1.61 |
Server storage [IO: ▲1.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 116 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
FV Code Highlighter: 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,800 ▲29 | 13.25 ▼1.13 | 1.89 ▼0.08 | 43.80 ▲2.95 |
Dashboard /wp-admin | 2,203 ▲12 | 5.84 ▲0.95 | 96.68 ▼5.51 | 36.55 ▼7.69 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.05 | 34.02 ▼8.73 | 36.41 ▲2.13 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.65 ▼5.52 | 599.43 ▼120.43 | 49.71 ▼11.63 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.01 | 94.61 ▼12.58 | 40.83 ▼3.52 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 50× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'FvCodeHighlighter\\Cache\\Cache' not found in wp-content/plugins/fv-code-highlighter/src/Cache/Filesystem.php:7
- > PHP Fatal error
Uncaught Error: Interface 'FvCodeHighlighter\\Container\\Factory' not found in wp-content/plugins/fv-code-highlighter/src/Container/AliasedFactory.php:7
- > PHP Fatal error
Uncaught Error: Class 'FvCodeHighlighter\\Highlighter\\AbstractHighlighter' not found in wp-content/plugins/fv-code-highlighter/src/Highlighter/General/General.php:9
- > PHP Fatal error
Uncaught Error: Interface 'FvCodeHighlighter\\Container\\Factory' not found in wp-content/plugins/fv-code-highlighter/src/Highlighter/Bash/Factory.php:12
- > PHP Fatal error
Uncaught Error: Interface 'FvCodeHighlighter\\Output\\Formatter\\Formatter' not found in wp-content/plugins/fv-code-highlighter/src/Output/Formatter/LineNumbers.php:9
- > PHP Fatal error
Uncaught Error: Interface 'FvCodeHighlighter\\Output\\Formatter\\Formatter' not found in wp-content/plugins/fv-code-highlighter/src/Output/Formatter/Filtered.php:9
- > PHP Fatal error
Uncaught Error: Interface 'FvCodeHighlighter\\Container\\Factory' not found in wp-content/plugins/fv-code-highlighter/src/Container/Factory/InstallerFactory.php:13
- > PHP Fatal error
Uncaught Error: Interface 'FvCodeHighlighter\\Container\\Factory' not found in wp-content/plugins/fv-code-highlighter/src/Highlighter/Html/Factory.php:14
- > PHP Fatal error
Uncaught Error: Interface 'FvCodeHighlighter\\Container\\Factory' not found in wp-content/plugins/fv-code-highlighter/src/Container/Factory/Admin/AdminFactory.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fv-code-highlighter/test/Diagnostics/Api/DataTest.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% 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 need to be fixed:
- Screenshots: These screenshots do not have images: #1 (PHP Code with dark mode enabled), #2 (The configuration page.), #3 (PHP Code with notepaper background and toolbox), #4 (General Code), #5 (CSS Code), #6 (HTML Code with embedded CSS and Javascript), #7 (JavaScript Code), #8 (PHP Code)
fv-code-highlighter/fv-code-highlighter.php Passed 13 tests
The main PHP file in "FV Code Highlighter" ver. 2.2.1 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
Highlighter your code to look beautiful.
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
No dangerous file extensions were detected16,901 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 11,341 |
PHP | 83 | 775 | 519 | 4,352 |
Sass | 2 | 47 | 0 | 635 |
XML | 2 | 6 | 132 | 369 |
JavaScript | 7 | 20 | 13 | 138 |
CSS | 4 | 8 | 5 | 47 |
YAML | 1 | 5 | 0 | 17 |
Markdown | 1 | 2 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 2 | 2.60% |
▷ Concrete classes | 75 | 97.40% |
▷ Final classes | 75 | 100.00% |
Methods | 251 | |
▷ Static methods | 17 | 6.77% |
▷ Public methods | 235 | 93.63% |
▷ Protected methods | 2 | 0.80% |
▷ Private methods | 14 | 5.58% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.93MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/notepaper.png | 0.12KB | 0.12KB | ▼ 3.15% |
screenshot-4.png | 20.64KB | 20.65KB | 0.00% |
screenshot-8.png | 153.09KB | 43.48KB | ▼ 71.60% |
screenshot-1.png | 142.76KB | 40.95KB | ▼ 71.31% |
screenshot-3.png | 166.56KB | 49.59KB | ▼ 70.23% |