78% quickblog-wp-blog-exporter

Code Review | Quickblog WP Blog Exporter

WordPress plugin Quickblog WP Blog Exporter scored78%from 54 tests.

About plugin

  • Plugin page: quickblog-wp-blog...
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Dec 7, 2021
  • Latest release: May 25, 2022
  • Number of updates: 45
  • Update frequency: every 3.8 days
  • Top authors: quickbl0g (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,065 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.02ms] Passed 4 tests

An overview of server-side resources used by Quickblog WP Blog Exporter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.02 ▼4.94
Dashboard /wp-admin3.35 ▲0.0451.39 ▲2.42
Posts /wp-admin/edit.php3.40 ▲0.0452.55 ▼1.23
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.41 ▼16.34
Media Library /wp-admin/upload.php3.27 ▲0.0438.13 ▲4.63

Server storage [IO: ▲38.26MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • Try to limit filesystem usage to 25MB (currently using 38.26MB)
Filesystem: 15,411 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Quickblog WP Blog Exporter: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9513.23 ▼1.001.93 ▲0.1041.97 ▼6.31
Dashboard /wp-admin2,234 ▲315.83 ▼0.2096.73 ▼6.4642.16 ▲0.35
Posts /wp-admin/edit.php2,116 ▲162.04 ▲0.0238.20 ▲2.0134.73 ▼1.58
Add New Post /wp-admin/post-new.php1,558 ▲1223.56 ▲0.44648.15 ▲21.3357.68 ▼1.85
Media Library /wp-admin/upload.php1,416 ▲194.27 ▲0.0495.52 ▼5.0046.71 ▼0.26

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 7× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient/examples/large-file-upload.php
    • > /wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient/examples/index.php
    • > /wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient/examples/multi-api.php
    • > /wp-content/plugins/quickblog-wp-blog-exporter/vendor/firebase/php-jwt/tests/bootstrap.php
    • > /wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient/examples/url-shortener.php
    • > /wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient/examples/simple-file-upload.php
    • > /wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient/examples/idtoken.php
  • 4095× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Service\\Resource' not found in wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient-services/src/CloudRun/Resource/ProjectsLocationsConfigurations.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient-services/src/CloudBuild/WorkerConfig.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient-services/src/Datastore/PropertyOrder.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient-services/src/CloudIot/PublicKeyCertificate.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient-services/src/Monitoring/Status.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient-services/src/ServiceConsumerManagement/Service.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient-services/src/Compute/RegionUrlMapsValidateRequest.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Service\\Resource' not found in wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient-services/src/AdExperienceReport/Resource/ViolatingSites.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient-services/src/Monitoring/QueryTimeSeriesRequest.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/quickblog-wp-blog-exporter/vendor/google/apiclient-services/src/CloudHealthcare/TagFilterList.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: quickblog, export, blog, google sheets

quickblog-wp-blog-exporter/quickblog-wp-blog-exporter.php 92% from 13 tests

"Quickblog WP Blog Exporter" version 1.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected755,503 lines of code in 15,371 files:
LanguageFilesBlank linesComment linesLines of code
PHP15,30868,726466,770749,405
Markdown261,27704,154
JSON18001,311
XML62942236
YAML6341140
CSS1171486
Python1222572
JavaScript12032
Bourne Shell13431
make211031
INI1015

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 106)
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity1.41
▷ Minimum class complexity1.00
▷ Maximum class complexity633.00
Average method complexity1.06
▷ Minimum method complexity1.00
▷ Maximum method complexity106.00
Code structure
Namespaces510
Interfaces29
Traits7
Classes15,272
▷ Abstract classes100.07%
▷ Concrete classes15,26299.93%
▷ Final classes90.06%
Methods103,315
▷ Static methods1490.14%
▷ Public methods102,89099.59%
▷ Protected methods1810.18%
▷ Private methods2440.24%
Functions238
▷ Named functions7531.51%
▷ Anonymous functions16368.49%
Constants830
▷ Global constants263.13%
▷ Class constants80496.87%
▷ Public constants804100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png32.59KB11.37KB▼ 65.12%