79% wp-c5-exporter

Code Review | WP C5 Exporter

WordPress plugin WP C5 Exporter scored79%from 54 tests.

About plugin

  • Plugin page: wp-c5-exporter
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2015
  • Latest release: Jul 30, 2016
  • Number of updates: 10
  • Update frequency: every 57.2 days
  • Top authors: hissy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /983 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1440.96 ▼5.86
Dashboard /wp-admin3.46 ▲0.1552.13 ▼0.27
Posts /wp-admin/edit.php3.58 ▲0.2249.87 ▲1.95
Add New Post /wp-admin/post-new.php6.04 ▲0.1589.38 ▼16.95
Media Library /wp-admin/upload.php3.39 ▲0.1536.53 ▲0.65
C5 Export /wp-admin/tools.php?page=c5-exporter3.3535.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.18 ▼0.191.69 ▼0.1043.82 ▼3.04
Dashboard /wp-admin2,199 ▲185.57 ▼0.1488.50 ▼15.9839.98 ▼5.74
Posts /wp-admin/edit.php2,107 ▲42.01 ▲0.0137.42 ▼2.7141.76 ▲3.30
Add New Post /wp-admin/post-new.php1,531 ▲522.95 ▼0.17671.23 ▼8.3557.28 ▼0.25
Media Library /wp-admin/upload.php1,398 ▼54.20 ▼0.0198.53 ▼1.0047.51 ▲4.19
C5 Export /wp-admin/tools.php?page=c5-exporter1,0332.1622.8128.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP418779645,369
HTML5598503,990
JavaScript56936112,342
CSS4416274
PO File14252121
JSON30077
Markdown113025

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 code0.17
Average class complexity52.88
▷ Minimum class complexity1.00
▷ Maximum class complexity197.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods140
▷ Static methods96.43%
▷ Public methods11884.29%
▷ Protected methods1611.43%
▷ Private methods64.29%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants36
▷ Global constants2466.67%
▷ Class constants1233.33%
▷ Public constants12100.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
FileSize - originalSize - compressedSavings
vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/manual/img/tab.png0.72KB0.70KB▼ 2.45%