80% sample-data-export

Code Review | Sample Data Export

WordPress plugin Sample Data Export scored80%from 54 tests.

About plugin

  • Plugin page: sample-data-export
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 26, 2021
  • Latest release: Nov 26, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: bijal112233 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /254 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.87MB] [CPU: ▼30.75ms] Passed 4 tests

Server-side resources used by Sample Data Export
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.66 ▲5.74
Dashboard /wp-admin3.08 ▼0.2323.62 ▼23.46
Posts /wp-admin/edit.php3.08 ▼0.2824.05 ▼22.51
Add New Post /wp-admin/post-new.php3.08 ▼2.8124.12 ▼65.79
Media Library /wp-admin/upload.php3.08 ▼0.1523.71 ▼11.22

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sample Data Export
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.62 ▼1.071.64 ▲0.0740.41 ▼1.00
Dashboard /wp-admin2,242 ▲505.28 ▲0.37114.30 ▲0.4934.76 ▼8.14
Posts /wp-admin/edit.php2,122 ▲332.58 ▲0.6135.89 ▼3.2927.42 ▼4.95
Add New Post /wp-admin/post-new.php1,699 ▲16623.41 ▲0.10652.34 ▼141.1533.78 ▼25.16
Media Library /wp-admin/upload.php1,487 ▲994.61 ▲0.40100.55 ▼15.6640.36 ▼7.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/sample-data-export/includes/admin/export-data.php+4
    Undefined index: startdate
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Screenshot_1.png), #2 (Screenshot_2.png)
You can look at the official readme.txt

sample-data-export/sample-data-export.php Passed 13 tests

The entry point to "Sample Data Export" version 1.0.0 is a PHP file that has certain tags in its header comment area
35 characters long description:
Download Users Data from the table.

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
No dangerous file extensions were detected17,477 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS41,7758110,652
JavaScript32,0026,8826,515
PHP75391310

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods25
▷ Static methods1040.00%
▷ Public methods1456.00%
▷ Protected methods00.00%
▷ Private methods1144.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin