74% pixelpost-importer

Code Review | Pixelpost Importer

WordPress plugin Pixelpost Importer scored 74% from 54 tests.

About plugin

  • Plugin page: pixelpost-importer
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2.2
  • WordPress version: 6.3.1
  • First release: Apr 9, 2013
  • Latest release: Jul 8, 2015
  • Number of updates: 25
  • Update frequency: every 32.8 days
  • Top authors: kerlu (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 1,864 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.16ms] Passed 4 tests

An overview of server-side resources used by Pixelpost Importer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.02 ▲2.70
Dashboard /wp-admin3.43 ▲0.1346.96 ▼14.96
Posts /wp-admin/edit.php3.54 ▲0.1942.89 ▼3.82
Add New Post /wp-admin/post-new.php6.01 ▲0.1382.89 ▲0.69
Media Library /wp-admin/upload.php3.35 ▲0.1335.37 ▲1.46

Server storage [IO: ▲0.09MB] [DB: ▲0.56MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
wp_odyssey_pp2wp
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pixelpost Importer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.421.80 ▲0.2142.16 ▲5.89
Dashboard /wp-admin2,209 ▲744.83 ▼0.72112.48 ▲21.9743.26 ▲8.08
Posts /wp-admin/edit.php2,086 ▲82.00 ▼0.0334.44 ▼5.8232.15 ▼1.85
Add New Post /wp-admin/post-new.php1,533 ▲1123.44 ▲0.34679.74 ▲28.2254.83 ▼2.47
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0193.06 ▼10.3744.87 ▼4.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_odyssey_pp2wp
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pixelpost-importer/pixelpost_ajaxratings-importer.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pixelpost-importer/pixelpost-importer.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pixelpost-importer/pixelpost-importer-init.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 url: ""
Please take inspiration from this readme.txt

pixelpost-importer/pixelpost-importer-init.php 92% from 13 tests

The main file in "Pixelpost Importer" v. 0.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pixelpost-importer.php" instead of "pixelpost-importer-init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected716 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP313397590
Markdown123064
JavaScript212062

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity26.00
▷ Minimum class complexity17.00
▷ Maximum class complexity35.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods47
▷ Static methods12.13%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png56.33KB23.84KB▼ 57.67%