89% exportyourstore

Code Review | ExportYourStore

WordPress plugin ExportYourStore scored89%from 54 tests.

About plugin

  • Plugin page: exportyourstore
  • Plugin version: 1.0
  • PHP compatiblity: 5.5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 7, 2021
  • Latest release: Dec 7, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: exportyourstore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.31ms] Passed 4 tests

An overview of server-side resources used by ExportYourStore
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0447.64 ▲7.54
Dashboard /wp-admin3.35 ▲0.0545.12 ▼1.06
Posts /wp-admin/edit.php3.41 ▲0.0552.16 ▲2.99
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.11 ▼4.39
Media Library /wp-admin/upload.php3.28 ▲0.0437.27 ▼2.77

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for ExportYourStore
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲2714.35 ▼0.251.87 ▼0.2042.42 ▼4.23
Dashboard /wp-admin2,222 ▲485.59 ▼0.0299.13 ▲8.5243.31 ▲2.26
Posts /wp-admin/edit.php2,124 ▲272.15 ▲0.1335.84 ▼2.5632.74 ▼4.50
Add New Post /wp-admin/post-new.php1,547 ▲1423.43 ▲0.20690.95 ▲9.1452.27 ▲3.29
Media Library /wp-admin/upload.php1,415 ▲154.18 ▼0.05103.36 ▼10.6241.85 ▼6.82

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

exportyourstore/exportyourstore.php 92% from 13 tests

The main PHP script in "ExportYourStore" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected316 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33675298
CSS12118

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin