90% pofw-csv-export-import

Code Review | POFW CSV Export-Import

WordPress plugin POFW CSV Export-Import scored90%from 54 tests.

About plugin

  • Plugin page: pofw-csv-export-i...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: May 14, 2020
  • Latest release: Aug 9, 2022
  • Number of updates: 3
  • Update frequency: every 272.3 days
  • Top authors: pektsekye (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /679 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.59ms] Passed 4 tests

A check of server-side resources used by POFW CSV Export-Import
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.55 ▲3.77
Dashboard /wp-admin3.32 ▼0.0348.86 ▼12.29
Posts /wp-admin/edit.php3.37 ▲0.0148.34 ▼0.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.63 ▼19.10
Media Library /wp-admin/upload.php3.24 ▲0.0135.61 ▲1.27

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by POFW CSV Export-Import
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.051.74 ▲0.0843.15 ▼0.45
Dashboard /wp-admin2,209 ▲215.89 ▲1.04109.28 ▲0.1345.86 ▲0.10
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0639.01 ▲2.4135.29 ▼3.79
Add New Post /wp-admin/post-new.php1,536 ▲1723.52 ▲0.44669.44 ▲12.2646.35 ▼9.23
Media Library /wp-admin/upload.php1,382 ▼94.22 ▼0.0896.27 ▼6.1644.58 ▼0.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: product options, csv export-import

pofw-csv-export-import/pofw-csv-export-import.php 92% from 13 tests

The principal PHP file in "POFW CSV Export-Import" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 208 characters long)

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
There were no executable files found in this plugin206 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP311119199
CSS1207

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.67
▷ Minimum class complexity6.00
▷ Maximum class complexity18.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods21
▷ Static methods14.76%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin