90% pojo-importer

Code Review | Pojo Importer

WordPress plugin Pojo Importer scored90%from 54 tests.

About plugin

  • Plugin page: pojo-importer
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 24, 2015
  • Latest release: Jul 23, 2023
  • Number of updates: 38
  • Update frequency: every 77.7 days
  • Top authors: KingYes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

7,000+ active /57,088 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.57ms] Passed 4 tests

Analyzing server-side resources used by Pojo Importer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.47 ▼2.28
Dashboard /wp-admin3.32 ▲0.0244.32 ▼0.57
Posts /wp-admin/edit.php3.37 ▲0.0244.85 ▼0.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.63 ▼11.16
Media Library /wp-admin/upload.php3.24 ▲0.0236.01 ▲2.96

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pojo Importer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.37 ▼1.304.06 ▲2.3540.17 ▼4.30
Dashboard /wp-admin2,212 ▲214.85 ▼0.0798.92 ▼7.1639.05 ▼5.15
Posts /wp-admin/edit.php2,094 ▲82.01 ▲0.0340.19 ▲4.9235.77 ▼0.96
Add New Post /wp-admin/post-new.php1,547 ▲1923.31 ▼0.23637.68 ▼55.5063.53 ▲11.66
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0494.02 ▼13.1242.75 ▼3.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: import, importer

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

The principal PHP file in "Pojo Importer" v. 1.2.6 is loaded by WordPress automatically on each request
109 characters long description:
Import all the demo content (Posts, Pages, Galleries, Slideshows), Widgets, Menus, Customizer and Front Page.

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
Everything looks great! No dangerous files found in this plugin2,310 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP54453522,030
PO File183111280

PHP code Passed 2 tests

Analyzing 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.39
Average class complexity46.38
▷ Minimum class complexity4.00
▷ Maximum class complexity183.00
Average method complexity4.86
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods94
▷ Static methods11.06%
▷ Public methods8691.49%
▷ Protected methods66.38%
▷ Private methods22.13%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.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
6 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/placeholder-1.png18.59KB10.52KB▼ 43.39%
assets/images/placeholder-2.png9.61KB6.82KB▼ 29.07%
assets/images/placeholder-4.png9.54KB6.84KB▼ 28.32%
assets/images/placeholder.png9.54KB6.84KB▼ 28.32%
assets/images/placeholder-5.png9.62KB6.87KB▼ 28.57%