Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼5.61ms] Passed 4 tests
This is a short check of server-side resources used by WP C5 Exporter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 40.96 ▼5.86 |
Dashboard /wp-admin | 3.46 ▲0.15 | 52.13 ▼0.27 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.87 ▲1.95 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 89.38 ▼16.95 |
Media Library /wp-admin/upload.php | 3.39 ▲0.15 | 36.53 ▲0.65 |
C5 Export /wp-admin/tools.php?page=c5-exporter | 3.35 | 35.09 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP C5 Exporter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.18 ▼0.19 | 1.69 ▼0.10 | 43.82 ▼3.04 |
Dashboard /wp-admin | 2,199 ▲18 | 5.57 ▼0.14 | 88.50 ▼15.98 | 39.98 ▼5.74 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.01 ▲0.01 | 37.42 ▼2.71 | 41.76 ▲3.30 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.95 ▼0.17 | 671.23 ▼8.35 | 57.28 ▼0.25 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.20 ▼0.01 | 98.53 ▼1.00 | 47.51 ▲4.19 |
C5 Export /wp-admin/tools.php?page=c5-exporter | 1,033 | 2.16 | 22.81 | 28.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/memory_test.php
- > /wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/slick_test.php
- > /wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/reader/memory_test.php
- > /wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/app/index.php
- > /wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/performance_test.php
- > /wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/example/example_advanced_selector.php
- 4095× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
- > PHP Warning
preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
- > PHP Warning
preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
- > PHP Warning
preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
- > PHP Warning
preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
- > PHP Warning
preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
- > PHP Warning
preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
- > PHP Warning
preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
- > PHP Warning
preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
- > PHP Warning
preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-c5-exporter/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
- > PHP Warning
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: exporter, concrete5
wp-c5-exporter/wp-c5-exporter.php Passed 13 tests
The main file in "WP C5 Exporter" v. 0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Move your WordPress blog content to your concrete5 site.
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 plugin12,198 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 877 | 964 | 5,369 |
HTML | 5 | 598 | 50 | 3,990 |
JavaScript | 5 | 693 | 611 | 2,342 |
CSS | 4 | 41 | 6 | 274 |
PO File | 1 | 42 | 52 | 121 |
JSON | 3 | 0 | 0 | 77 |
Markdown | 1 | 13 | 0 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 52.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 9 | 6.43% |
▷ Public methods | 118 | 84.29% |
▷ Protected methods | 16 | 11.43% |
▷ Private methods | 6 | 4.29% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 24 | 66.67% |
▷ Class constants | 12 | 33.33% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/manual/img/tab.png | 0.72KB | 0.70KB | ▼ 2.45% |