10% blogware-importer

Code Review | Blogware Importer

WordPress plugin Blogware Importer scored10%from 54 tests.

About plugin

  • Plugin page: blogware-importer
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: May 20, 2010
  • Latest release: Oct 16, 2014
  • Number of updates: 7
  • Update frequency: every 230.0 days
  • Top authors: nacin (57.14%)briancolinger (42.86%)nbachiyski (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,570 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/blogware-importer/blogware-importer.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; BW_Import has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼51.86ms] Passed 4 tests

Server-side resources used by Blogware Importer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.363.95 ▼36.73
Dashboard /wp-admin2.12 ▼1.196.37 ▼41.17
Posts /wp-admin/edit.php2.12 ▼1.247.17 ▼40.24
Add New Post /wp-admin/post-new.php2.12 ▼3.776.30 ▼89.28
Media Library /wp-admin/upload.php2.12 ▼1.116.20 ▼26.18

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blogware Importer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.181.54 ▼0.1741.59 ▼1.62
Dashboard /wp-admin2,206 ▲245.82 ▲0.7998.24 ▼6.2139.87 ▼5.92
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0235.21 ▼1.4530.47 ▼2.76
Add New Post /wp-admin/post-new.php1,533 ▼023.22 ▲0.20579.77 ▼90.7944.18 ▼20.25
Media Library /wp-admin/upload.php1,388 ▲34.18 ▲0.0394.57 ▼4.4239.96 ▼4.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/blogware-importer/blogware-importer.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; BW_Import has a deprecated constructor
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === blogware-importer === )
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

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

This is the main PHP file of "Blogware Importer" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
27 characters long description:
Import posts from Blogware.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin175 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13721175

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected