89% stp-importer

Code Review | Simple Tags Importer

WordPress plugin Simple Tags Importer scored89%from 54 tests.

About plugin

  • Plugin page: stp-importer
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: May 20, 2010
  • Latest release: Dec 6, 2022
  • Number of updates: 9
  • Update frequency: every 509.2 days
  • Top authors: githubsync (33.33%)nacin (33.33%)briancolinger (33.33%)Otto42 (22.22%)nbachiyski (22.22%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /10,021 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.86ms] Passed 4 tests

This is a short check of server-side resources used by Simple Tags Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.07 ▲4.29
Dashboard /wp-admin3.31 ▼0.0447.07 ▼10.79
Posts /wp-admin/edit.php3.36 ▲0.0045.31 ▲0.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.37 ▼24.90
Media Library /wp-admin/upload.php3.23 ▲0.0032.70 ▼4.08

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Simple Tags Importer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.51 ▼0.865.06 ▲3.1445.11 ▲3.70
Dashboard /wp-admin2,209 ▲275.85 ▲0.9999.59 ▼1.1343.77 ▼0.62
Posts /wp-admin/edit.php2,086 ▼02.04 ▲0.0433.74 ▼0.8835.66 ▲1.61
Add New Post /wp-admin/post-new.php1,536 ▲1723.18 ▲0.09690.48 ▲37.6661.01 ▲4.16
Media Library /wp-admin/upload.php1,388 ▲34.28 ▲0.0993.11 ▼12.5842.96 ▼2.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
  • Plugin Name: You should set the name of your plugin on the first line ( === stp-importer === )
The official readme.txt might help

stp-importer/stp-importer.php Passed 13 tests

The primary PHP file in "Simple Tags Importer" version 0.3.1 is used by WordPress to initiate all plugin functionality
47 characters long description:
Import Simple Tagging tags into WordPress tags.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin130 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13131130

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin